23 lines
560 B
Nginx Configuration File
23 lines
560 B
Nginx Configuration File
limit_req_zone $binary_remote_addr zone=txtdotapi:10m rate=2r/s;
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name txt.dc09.ru;
|
|
|
|
location / {
|
|
limit_req zone=txtdotapi burst=4;
|
|
proxy_pass http://127.0.0.1:8080;
|
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location /static/ {
|
|
alias /home/txtdot/src/dist/static/;
|
|
}
|
|
}
|