40 lines
1.1 KiB
Nginx Configuration File
40 lines
1.1 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
client_max_body_size 257m;
|
|
|
|
location = /api/games/import {
|
|
client_max_body_size 1g;
|
|
client_body_timeout 1800s;
|
|
proxy_read_timeout 1800s;
|
|
proxy_send_timeout 1800s;
|
|
proxy_request_buffering off;
|
|
proxy_pass http://evening_detective_server:8090;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location ~ ^/api/games/[0-9]+/results-package/(apply|download)$ {
|
|
client_max_body_size 1g;
|
|
client_body_timeout 1800s;
|
|
proxy_read_timeout 1800s;
|
|
proxy_send_timeout 1800s;
|
|
proxy_request_buffering off;
|
|
proxy_pass http://evening_detective_server:8090;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://evening_detective_server:8090;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://evening_detective_frontend:8080;
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|