updated to make work some settings
This commit is contained in:
@@ -2,7 +2,7 @@ server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name benchcoach.online www.benchcoach.online;
|
||||
server_name benchcoach-dev.ascorrea.com;
|
||||
server_tokens off;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
@@ -10,7 +10,7 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://benchcoach.online$request_uri;
|
||||
return 301 https://benchcoach-dev.ascorrea.com$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,12 +18,17 @@ server {
|
||||
listen 443 default_server ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name benchcoach.online;
|
||||
server_name benchcoach-dev.ascorrea.com;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/live/benchcoach.online/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/benchcoach.online/privkey.pem;
|
||||
ssl_certificate /etc/nginx/ssl/live/benchcoach-dev.ascorrea.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/benchcoach-dev.ascorrea.com/privkey.pem;
|
||||
|
||||
location / {
|
||||
# ...
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Client-IP $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://app:3000/;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user