depolymerizer-bitcoin (820B)
1 server { 2 # NOTE: 3 # - urgently consider configuring TLS instead 4 # - maybe keep a forwarder from HTTP to HTTPS 5 listen 80; 6 7 # NOTE: 8 # - Comment out this line if you have no IPv6 9 listen [::]:80; 10 11 # NOTE: 12 # - replace with your actual server name 13 server_name localhost; 14 15 access_log /var/log/nginx/depolymerizer-bitcoin.log; 16 error_log /var/log/nginx/depolymerizer-bitcoin.err; 17 18 location /depolymerizer-bitcoin/ { 19 proxy_pass http://unix:/var/run/depolymerizer-bitcoin/httpd/depolymerizer-bitcoin-http.sock:/; 20 proxy_redirect off; 21 proxy_set_header Host $host; 22 23 # NOTE: 24 # - put your actual DNS name here 25 proxy_set_header X-Forwarded-Host "localhost"; 26 27 # NOTE: 28 # - uncomment the following line if you are using HTTPS 29 # proxy_set_header X-Forwarded-Proto "https"; 30 } 31 }