mirror of
https://github.com/evgen-app/chess_rpg_backend.git
synced 2024-11-10 19:57:12 +03:00
Added nginx conf
This commit is contained in:
parent
c41b778065
commit
b0b64f66fa
44
nginx.conf
Normal file
44
nginx.conf
Normal file
|
@ -0,0 +1,44 @@
|
|||
server {
|
||||
# Base settings for client body size
|
||||
client_max_body_size 64M;
|
||||
client_body_timeout 10;
|
||||
send_timeout 10;
|
||||
keepalive_timeout 10;
|
||||
client_header_timeout 10;
|
||||
client_body_buffer_size 64M;
|
||||
client_header_buffer_size 64M;
|
||||
client_max_header_size 64M;
|
||||
|
||||
location /static {
|
||||
allow all;
|
||||
autoindex off;
|
||||
root /var/www;
|
||||
}
|
||||
|
||||
location /media {
|
||||
allow all;
|
||||
autoindex off;
|
||||
root /var/www;
|
||||
}
|
||||
|
||||
location / {
|
||||
allow all;
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
|
||||
|
||||
# WebSocket support
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
listen 443 ssl;
|
||||
|
||||
# ssl settings
|
||||
# ssl_certificate /etc/nginx/ssl/nginx.crt;
|
||||
# ssl_certificate_key /etc/nginx/ssl/nginx.key;
|
||||
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
}
|
Loading…
Reference in New Issue
Block a user