infra-faucet/ansible/roles/faucet/templates/faucet-proxy.conf.j2
Jakub Sokołowski 7c8a33eb1b
add initial faucet role
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-19 12:08:13 +01:00

19 lines
371 B
Django/Jinja

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 }}/;
}
}