aboutsummaryrefslogtreecommitdiffstats
path: root/roles/srht/templates/meta.srht.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/srht/templates/meta.srht.conf.j2')
-rw-r--r--roles/srht/templates/meta.srht.conf.j233
1 files changed, 18 insertions, 15 deletions
diff --git a/roles/srht/templates/meta.srht.conf.j2 b/roles/srht/templates/meta.srht.conf.j2
index f5a3a2c..6c3abec 100644
--- a/roles/srht/templates/meta.srht.conf.j2
+++ b/roles/srht/templates/meta.srht.conf.j2
@@ -1,22 +1,25 @@
server {
- listen 81;
- server_name meta.git.{{ global.domain_name }};
- client_max_body_size 100M;
+ 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 }};
- }
+ gzip on;
+ gzip_types text/css text/html;
- location /static {
- root /usr/lib/python3.8/site-packages/metasrht;
- }
+ location / {
+ proxy_pass http://127.0.0.1:{{ srht_meta_port }};
+ }
- location /query {
- proxy_pass http://127.0.0.1:{{ srht_meta_api_port }};
- }
+ location /static {
+ root /usr/lib/python3.8/site-packages/hubsrht;
+ }
- location = /robots.txt {
- root /var/www;
- }
+ location /query {
+ proxy_pass http://127.0.0.1:{{ srht_meta_api_port }};
+ }
+
+ location ^~ /.well-known {
+ root /var/www;
+ }
}
remember that computers suck.