-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
42 lines (33 loc) · 941 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
events {
worker_connections 1024;
}
http {
server_tokens off;
charset utf-8;
server {
listen 80 default_server;
server_name api.paxrelpax.com;
# location / {
# proxy_pass http://ai_cu:8080/;
# }
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
# use the certificates
ssl_certificate /etc/letsencrypt/live/api.paxrelpax.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/api.paxrelpax.com/privkey.pem;
server_name api.paxrelpax.com;
root /var/www/html;
index index.php index.html index.htm;
location / {
proxy_pass http://ai_cu:8080/;
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
}