From 58a81dc2ea748cf769d88b7515a39c6587d37ce2 Mon Sep 17 00:00:00 2001 From: binary Date: Fri, 15 Jan 2021 15:48:42 +0100 Subject: Add nginx and sourcehut role --- roles/srht/templates/hub.srht.conf.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/srht/templates/hub.srht.conf.j2 (limited to 'roles/srht/templates/hub.srht.conf.j2') diff --git a/roles/srht/templates/hub.srht.conf.j2 b/roles/srht/templates/hub.srht.conf.j2 new file mode 100644 index 0000000..41775f4 --- /dev/null +++ b/roles/srht/templates/hub.srht.conf.j2 @@ -0,0 +1,22 @@ +server { + listen 80; + server_name git.{{ global.domain_name }}; + client_max_body_size 100M; + + location / { + proxy_pass http://127.0.0.1:{{ srht_hub_port }}; + } + + location /static { + root /usr/lib/python3.8/site-packages/hubsrht; + } + + location /query { + proxy_pass http://127.0.0.1:{{ srht_hub_port }}; + } + + location = /robots.txt { + root /var/www; + } +} + -- cgit v1.2.3