You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
server {
|
|
listen 80;
|
|
server_name domain;
|
|
location / {
|
|
proxy_pass http://site_name:8080;
|
|
access_log off;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
client_max_body_size 60m;
|
|
proxy_http_version 1.1;
|
|
}
|
|
location /api/eventSourceBus {
|
|
proxy_pass http://site_name:8080;
|
|
access_log off;
|
|
proxy_cache off;
|
|
proxy_buffering off;
|
|
proxy_read_timeout 86400s;
|
|
proxy_send_timeout 86400s;
|
|
proxy_set_header Connection '';
|
|
chunked_transfer_encoding off;
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_http_version 1.1;
|
|
}
|
|
listen 443 ssl;
|
|
ssl_certificate /etc/letsencrypt/tmp/domain/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/tmp/domain/privkey.pem;
|
|
}
|