Last active
December 21, 2023 06:26
-
-
Save SaKKo/2fdbbe0070b2ba69c831f1f88ea032e9 to your computer and use it in GitHub Desktop.
Revisions
-
SaKKo renamed this gist
Jan 25, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
SaKKo created this gist
Jan 25, 2020 .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,23 @@ upstream MY_APP { server 127.0.0.1:3000; server 127.0.0.1:3000 max_fails=1 fail_timeout=30s backup; keepalive 64; } server { listen 80 default_server; server_name _; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_max_temp_file_size 0; proxy_pass http://MY_APP/; proxy_redirect off; proxy_read_timeout 240s; } }