Files
agents/venue/nginx.https.conf
2026-10-13 14:16:35 +07:00

103 lines
2.8 KiB
Plaintext

ssl_certificate /etc/nginx/certificates/fullchain.pem;
ssl_certificate_key /etc/nginx/certificates/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
client_max_body_size 257m;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 120s;
server {
listen 80 default_server;
server_name _;
if ($host ~ ^(evening-detective\.crabs-games\.art|evening-detective-api\.crabs-games\.art)$) {
return 308 https://$host$request_uri;
}
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;
}
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;
}
location /api/ {
proxy_pass http://evening_detective_server:8090;
}
location / {
proxy_pass http://evening_detective_frontend:8080;
}
}
server {
listen 443 ssl;
server_name evening-detective.crabs-games.art;
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;
}
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;
}
location /api/ {
proxy_pass http://evening_detective_server:8090;
}
location / {
proxy_pass http://evening_detective_frontend:8080;
}
}
server {
listen 443 ssl;
server_name evening-detective-api.crabs-games.art;
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;
}
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;
}
location / {
proxy_pass http://evening_detective_server:8090;
}
}