ansible/roles/nginx_site/templates/gw.home.foo.sh.conf.j2

16 lines
439 B
Django/Jinja

{% for host in ssh_proxy_hosts %}
location /{{ host | hash('sha1') }}/ {
proxy_pass http://127.0.0.1:6000?token={{ host | hash('sha1') }};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_read_timeout 600s;
proxy_buffering off;
}
{% endfor %}
location / {
deny all;
}