mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
29 lines
897 B
Plaintext
29 lines
897 B
Plaintext
server {
|
|
listen 443 ssl;
|
|
server_name $SUBDOMAIN.pockethost.io;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/$SUBDOMAIN.pockethost.io/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/$SUBDOMAIN.pockethost.io/privkey.pem;
|
|
|
|
access_log /home/pockethost/pockethost-microservice/data/$SUBDOMAIN/logs/access.log;
|
|
error_log /home/pockethost/pockethost-microservice/data/$SUBDOMAIN/logs/error.log;
|
|
|
|
location / {
|
|
proxy_read_timeout 180s;
|
|
|
|
# WebSocket support
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
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;
|
|
|
|
proxy_pass http://127.0.0.1:$PORT;
|
|
}
|
|
}
|
|
|
|
|