writefreely/server/templates/nginx.conf.j2
changeset 200 10051617d075
parent 159 05d0cf32e077
child 202 252069788104
equal deleted inserted replaced
199:9aa5f284ea10 200:10051617d075
    32 
    32 
    33     location ~ ^/.well-known/(webfinger|nodeinfo|host-meta) {
    33     location ~ ^/.well-known/(webfinger|nodeinfo|host-meta) {
    34         proxy_set_header Host $host;
    34         proxy_set_header Host $host;
    35         proxy_set_header X-Real-IP $remote_addr;
    35         proxy_set_header X-Real-IP $remote_addr;
    36         proxy_set_header X-Forwarded-For $remote_addr;
    36         proxy_set_header X-Forwarded-For $remote_addr;
    37         proxy_pass http://127.0.0.1:{{nginx_proxy_port}};
    37 
       
    38         set $upstream http://127.0.0.1:{{nginx_proxy_port}};
       
    39         proxy_pass $upstream;
       
    40 
    38         proxy_redirect off;
    41         proxy_redirect off;
    39     }
    42     }
    40 
    43 
    41     location ~ ^/(css|img|js|fonts)/ {
    44     location ~ ^/(css|img|js|fonts)/ {
    42         root {{nginx_static_content}};
    45         root {{nginx_static_content}};
    46 
    49 
    47     location / {
    50     location / {
    48         proxy_set_header Host $host;
    51         proxy_set_header Host $host;
    49         proxy_set_header X-Real-IP $remote_addr;
    52         proxy_set_header X-Real-IP $remote_addr;
    50         proxy_set_header X-Forwarded-For $remote_addr;
    53         proxy_set_header X-Forwarded-For $remote_addr;
    51         proxy_pass http://127.0.0.1:{{nginx_proxy_port}};
    54 
       
    55         set $upstream http://127.0.0.1:{{nginx_proxy_port}};
       
    56         proxy_pass $upstream;
       
    57 
    52         proxy_redirect off;
    58         proxy_redirect off;
    53     }
    59     }
    54 }
    60 }