Last active
May 8, 2021 07:55
-
-
Save gleox/1c7dfbfc5511bfbc737eddaa985c58dc to your computer and use it in GitHub Desktop.
Revisions
-
gleox renamed this gist
May 8, 2021 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ server { server_name example.com; listen 443 ssl; ssl_certificate /opt/lego/certificates/example.com.crt; ssl_certificate_key /opt/lego/certificates/example.com.key; access_log /var/log/nginx/sites/example.com.log; location / { root /var/www/app1; -
gleox renamed this gist
May 8, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
gleox created this gist
May 8, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ server { server_name examples.com; listen 443 ssl; ssl_certificate /opt/lego/certificates/examples.com.crt; ssl_certificate_key /opt/lego/certificates/examples.com.key; access_log /var/log/nginx/sites/examples.com.log; location / { root /var/www/app1; try_files $uri $uri/ /index.html; } location /app2 { access_log off; return 302 https://$host$request_uri/; } location /app2/ { root /var/www/app2; try_files $uri $uri/ /index.html; } location ~ ^/(api|avatar|file|swagger) { proxy_http_version 1.1; proxy_cache off; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-For $http_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_pass http://backend; } }