Download raw (606 bytes)
server { listen 80; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; location / { alias /home/pi/Documents/osp.workshop.meta-port-au-prince/setup/www/; autoindex on; } location /ether/ { rewrite /ether/(.*) /$1 break; proxy_pass http://localhost:9001/; proxy_redirect / /ether/; proxy_set_header Host $host; proxy_buffering off; } location /api/ { proxy_pass http://127.0.0.1:5555; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }