server { listen 80; server_name {{ faucet_domain | mandatory }}; return 302 https://$host$request_uri; } server { listen 443 ssl; server_name {{ faucet_domain | mandatory }}; ssl_certificate /certs/origin.crt; ssl_certificate_key /certs/origin.key; location / { proxy_pass http://127.0.0.1:{{ faucet_http_port }}/; {% include "cors-setup.conf.j2" %} } }