Nginx config

This commit is contained in:
DarkCat09 2023-08-31 14:26:53 +04:00
parent c5e55fbcb9
commit c6bac932ce
No known key found for this signature in database
GPG Key ID: 0A26CD5B3345D6E3

22
nginx.conf Normal file
View File

@ -0,0 +1,22 @@
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/;
}
}