x
This commit is contained in:
1 parent
55f7be7307
commit
537b6d3bca
6 files changed
+287
-6
No files matched your search
@@ -0,0 +1,31 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name api.pkh.kitizone.com;
|
||||
|
||||
location ~ /.well-known/acme-challenge {
|
||||
allow all;
|
||||
root /var/www/certbot;
|
||||
}
|
||||
location / { return 301 https://$host$request_uri; }
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name api.pkh.kitizone.com;
|
||||
|
||||
client_max_body_size 20m;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/api.pkh.kitizone.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/api.pkh.kitizone.com/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://192.168.1.167:3052;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user