aboutsummaryrefslogtreecommitdiffstats
path: root/roles/srht/templates/meta.srht.conf.j2
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-15 15:48:42 +0100
committerbinary <me@rgoncalves.se>2021-01-15 15:49:36 +0100
commit58a81dc2ea748cf769d88b7515a39c6587d37ce2 (patch)
treec7664528dba83bc4ddc341137c53ec4acf072f15 /roles/srht/templates/meta.srht.conf.j2
parentdd2e7cf9113349b9515a27a076f2e45a8a34684e (diff)
downloadinfrastructure-58a81dc2ea748cf769d88b7515a39c6587d37ce2.tar.gz
Add nginx and sourcehut role
Diffstat (limited to 'roles/srht/templates/meta.srht.conf.j2')
-rw-r--r--roles/srht/templates/meta.srht.conf.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/srht/templates/meta.srht.conf.j2 b/roles/srht/templates/meta.srht.conf.j2
new file mode 100644
index 0000000..f5a3a2c
--- /dev/null
+++ b/roles/srht/templates/meta.srht.conf.j2
@@ -0,0 +1,22 @@
+server {
+ listen 81;
+ server_name meta.git.{{ global.domain_name }};
+ client_max_body_size 100M;
+
+ location / {
+ proxy_pass http://127.0.0.1:{{ srht_meta_port }};
+ }
+
+ location /static {
+ root /usr/lib/python3.8/site-packages/metasrht;
+ }
+
+ location /query {
+ proxy_pass http://127.0.0.1:{{ srht_meta_api_port }};
+ }
+
+ location = /robots.txt {
+ root /var/www;
+ }
+}
+
remember that computers suck.