add nginx config files
This commit is contained in:
26
nginx/sites-available/grist.aldon.fr
Normal file
26
nginx/sites-available/grist.aldon.fr
Normal file
@@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name grist.aldon.fr;
|
||||
return 301 http://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name grist.aldon.fr;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/aldon.fr/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/aldon.fr/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://192.168.1.35:8484;
|
||||
|
||||
proxy_redirect off;
|
||||
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_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user