first commit
This commit is contained in:
commit
5de45a37bd
9 files changed
+499
No files matched your search
@@ -0,0 +1,62 @@
|
||||
user abc;
|
||||
worker_processes 1;
|
||||
pid /run/floppy/nginx.pid;
|
||||
error_log /dev/stderr warn;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
access_log /dev/stdout combined;
|
||||
|
||||
client_body_temp_path /run/floppy/nginx/client_body;
|
||||
proxy_temp_path /run/floppy/nginx/proxy;
|
||||
fastcgi_temp_path /run/floppy/nginx/fastcgi;
|
||||
uwsgi_temp_path /run/floppy/nginx/uwsgi;
|
||||
scgi_temp_path /run/floppy/nginx/scgi;
|
||||
|
||||
sendfile on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
client_max_body_size 20M;
|
||||
client_body_buffer_size 256k;
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript;
|
||||
|
||||
upstream app_server {
|
||||
server 127.0.0.1:8001;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8000;
|
||||
server_name _;
|
||||
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "no-referrer-when-downgrade" always;
|
||||
|
||||
location / {
|
||||
proxy_pass http://app_server;
|
||||
proxy_set_header Host $http_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 $http_x_forwarded_proto;
|
||||
}
|
||||
|
||||
location /health/ {
|
||||
access_log off;
|
||||
proxy_pass http://app_server;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
alias /floppy/staticfiles/;
|
||||
expires 30d;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user