thread-sphere/nginx.cnf

39 lines
937 B
Text
Raw Normal View History

2024-11-16 19:22:55 +01:00
server {
listen 80;
server_name threadsphere.com;
return 301 https://www.threadsphere.com$request_uri;
}
server {
listen 80;
server_name www.threadsphere.com;
return 301 https://www.threadsphere.com$request_uri;
}
server {
listen 443 ssl;
server_name threadsphere.com;
ssl_certificate /etc/ssl/certs/thread-sphere.crt;
ssl_certificate_key /etc/ssl/private/thread-sphere.key;
return 301 https://www.threadsphere.com$request_uri;
}
server {
listen 443 ssl;
server_name www.threadsphere.com;
ssl_certificate /etc/ssl/certs/thread-sphere.crt;
ssl_certificate_key /etc/ssl/private/thread-sphere.key;
location / {
2024-11-16 23:47:32 +01:00
proxy_pass http://127.0.0.1:5001;
2024-11-16 19:22:55 +01:00
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;
}
}