diff options
author | binary <me@rgoncalves.se> | 2021-01-18 08:51:43 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-01-18 08:51:43 +0100 |
commit | 3d2f89b3bdda212c57975cc261ea8c9040aee159 (patch) | |
tree | 3c0b4e5818f8a036ced87790e37269b5c1cb7f96 /roles/srht/templates/git.srht.conf.j2 | |
parent | f83652e0e723af7afbeb3494ed888db76d5efa82 (diff) | |
download | infrastructure-3d2f89b3bdda212c57975cc261ea8c9040aee159.tar.gz |
Refactor srht role with vars
Diffstat (limited to 'roles/srht/templates/git.srht.conf.j2')
-rw-r--r-- | roles/srht/templates/git.srht.conf.j2 | 22 |
1 files changed, 22 insertions, 0 deletions
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; + } +} + |