-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Showing
5 changed files
with
67 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
user nginx; | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
keepalive_timeout 65; | ||
client_max_body_size 15M; | ||
|
||
server { | ||
listen 80; | ||
server_name _; | ||
|
||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_http_version 1.1; | ||
proxy_set_header Connection ""; | ||
proxy_buffering off; | ||
proxy_read_timeout 3600s; | ||
proxy_send_timeout 3600s; | ||
|
||
location @backend { | ||
proxy_pass http://api:5001; | ||
} | ||
|
||
location @frontend { | ||
proxy_pass http://web:3000; | ||
} | ||
|
||
location /console/api { | ||
try_files $uri $uri/ @backend; | ||
} | ||
|
||
location /api { | ||
try_files $uri $uri/ @backend; | ||
} | ||
|
||
location /v1 { | ||
try_files $uri $uri/ @backend; | ||
} | ||
|
||
location /files { | ||
try_files $uri $uri/ @backend; | ||
} | ||
|
||
location / { | ||
try_files $uri $uri/ @frontend; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.