From 3d2f89b3bdda212c57975cc261ea8c9040aee159 Mon Sep 17 00:00:00 2001 From: binary Date: Mon, 18 Jan 2021 08:51:43 +0100 Subject: Refactor srht role with vars --- roles/srht/templates/git.srht.conf.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/srht/templates/git.srht.conf.j2 (limited to 'roles/srht/templates/git.srht.conf.j2') diff --git a/roles/srht/templates/git.srht.conf.j2 b/roles/srht/templates/git.srht.conf.j2 new file mode 100644 index 0000000..1b42ef2 --- /dev/null +++ b/roles/srht/templates/git.srht.conf.j2 @@ -0,0 +1,22 @@ +server { + listen 82; + server_name git.{{ global.domain_name }}; + client_max_body_size 100M; + + location / { + proxy_pass http://127.0.0.1:{{ srht_git_port }}; + } + + location /static { + root /usr/lib/python3.8/site-packages/hubsrht; + } + + location /query { + proxy_pass http://127.0.0.1:{{ srht_git_api_port }}; + } + + location = /robots.txt { + root /var/www; + } +} + -- cgit v1.2.3