-
-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe67b6a
commit e89404f
Showing
3 changed files
with
55 additions
and
76 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,26 @@ | ||
upstream helpdesk-webapi { | ||
server helpdesk-webapi:5248; | ||
} | ||
|
||
server { | ||
# listen 80; | ||
# | ||
# resolver 127.0.0.11 valid=5s; | ||
# | ||
# include /etc/nginx/mime.types; | ||
# | ||
# location / { | ||
# proxy_pass http://helpdesk-webapi/; | ||
# } | ||
# | ||
worker_processes auto; | ||
|
||
# listen 80 default_server; | ||
# | ||
# location / { | ||
# proxy_pass http://helpdesk-webapi/; | ||
# proxy_http_version 1.1; | ||
# proxy_set_header Upgrade $http_upgrade; | ||
# proxy_set_header Connection keep-alive; | ||
# proxy_set_header Host $host; | ||
# proxy_cache_bypass $http_upgrade; | ||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
# proxy_set_header X-Forwarded-Proto $scheme; | ||
# } | ||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
listen 80; | ||
server_name localhost; | ||
location / { | ||
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; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header X-NginX-Proxy true; | ||
http { | ||
map $http_connection $connection_upgrade { | ||
"~*Upgrade" $http_connection; | ||
default keep-alive; | ||
} | ||
|
||
proxy_redirect off; | ||
proxy_pass http://myserver; | ||
} | ||
server { | ||
listen 80; | ||
location / { | ||
proxy_pass http://backend:5248/; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection $connection_upgrade; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
} | ||
} |