Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ssl_session_cache shared:SSL:10m;
- # ssl_session_timeout 5m;
- # ssl_stapling on;
- # resolver 8.8.8.8;
- upstream django {
- server unix:/tmp/aqmt.sock;
- }
- server {
- listen 80;
- server_name 85.143.174.248;
- keepalive_timeout 180;
- client_max_body_size 150M;
- gzip on;
- gzip_min_length 1100;
- gzip_buffers 4 32k;
- gzip_comp_level 5;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- gzip_vary on;
- location /private-x-accel-redirect/ {
- internal;
- alias /home/alexander/aqmt/apps/private-media/;
- }
- location /favicon.ico {
- alias /home/alexander/aqmt/apps/static/images/favicon.ico;
- }
- location ^~ /static/ {
- root /home/alexander/aqmt/apps/;
- expires 24h;
- # expires 0;
- }
- location /private-media/ {
- uwsgi_pass django;
- include /home/alexander/aqmt/config/uwsgi_params;
- uwsgi_read_timeout 600;
- add_header 'Access-Control-Allow-Origin' '*' always;
- add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
- add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,X-Frame-Options' always;
- add_header 'Access-Control-Expose-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,X-Frame-Options' always;
- }
- location /images/ {
- root /home/alexander/aqmt/apps/media/;
- }
- location /uploads/ {
- root /home/alexander/aqmt/apps/media/;
- }
- location /files/ {
- root /home/alexander/aqmt/apps/media/;
- }
- location /_versions/ {
- root /home/alexander/aqmt/apps/media/;
- }
- location /socket.io/ {
- proxy_pass http://localhost:5000;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_http_version 1.1;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $host;
- }
- location /new_poll/ {
- proxy_pass http://localhost:5000;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_http_version 1.1;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $host;
- }
- location /new_test/ {
- proxy_pass http://localhost:5000;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_http_version 1.1;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $host;
- }
- location / {
- uwsgi_pass django;
- include /home/alexander/aqmt/config/uwsgi_params;
- uwsgi_read_timeout 600;
- add_header 'Access-Control-Allow-Origin' '*' always;
- add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
- add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,X-Frame-Options' always;
- add_header 'Access-Control-Expose-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,X-Frame-Options' always;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement