Advertisement
ugrobug

Untitled

Jul 14th, 2022
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.69 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     server_name wherefilmed.org;
  4.  
  5.     location = /favicon.ico { access_log off; log_not_found off; }
  6.     location /static/ {
  7.         root /home/ugrobug/wherefilmed;
  8.     }
  9.  
  10.      location / {
  11.         proxy_headers_hash_max_size 512;
  12.      proxy_headers_hash_bucket_size 128;
  13.         include proxy_params;
  14.         proxy_pass http://unix:/run/gunicorn.sock;
  15.         proxy_set_header X-Forwarded-Port $server_port;
  16.         proxy_set_header X-Forwarded-Host $host;
  17.         proxy_redirect off;
  18.         proxy_set_header Host $http_host;
  19.         proxy_set_header X-Real-IP $remote_addr;
  20.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21.  
  22.  
  23.  
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement