update: add all nginx config for each active services
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
server {
|
||||
if ($host = www.dashboard.crenam.space) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
if ($host = dashboard.crenam.space) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
listen 80;
|
||||
server_name dashboard.crenam.space www.dashboard.crenam.space;
|
||||
return 301 https://dashboard.crenam.space$request_uri;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name dashboard.crenam.space www.dashboard.crenam.space;
|
||||
|
||||
location / {
|
||||
proxy_pass http://192.168.1.15:7575;
|
||||
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;
|
||||
}
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/dashboard.crenam.space/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/dashboard.crenam.space/privkey.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user