Last active
October 23, 2020 17:52
-
-
Save nossila/cababbac2644d10be3629cd75295c845 to your computer and use it in GitHub Desktop.
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name biomas.octoplustest.com; | |
charset utf-8; | |
client_max_body_size 100M; | |
send_timeout 600s; | |
client_body_in_file_only clean; | |
client_body_buffer_size 32K; | |
proxy_read_timeout 600s; | |
proxy_send_timeout 600s; | |
lingering_time 120s; | |
location / { | |
index index.html; | |
root /home/biomas/frontend/build; | |
try_files $uri $uri/ @frontend; | |
} | |
location /graphql { | |
proxy_pass http://sb:5002; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /s/ { | |
proxy_pass http://sb:5000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /favicon.ico { | |
alias /mnt/biomas/favicon.ico; | |
} | |
location /googlee5aa5e274c4e10fe.html { | |
alias /mnt/biomas/googlee5aa5e274c4e10fe.html; | |
} | |
location /public { | |
root /mnt/biomas/backend; | |
try_files $uri $uri/ @backend; | |
} | |
location /static { | |
root /mnt/biomas/backend; | |
try_files $uri $uri/ @frontend; | |
} | |
location @frontend { | |
proxy_pass http://sb:7272; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location @backend { | |
proxy_pass http://sb:5002; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment