From 5aeb753d937e376c7ef440a1a8a7c480ad99f118 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Thu, 2 Nov 2023 14:38:53 +0100 Subject: [PATCH] Fixed broken builds database and nginx proxy --- roles/builds.sr.ht/tasks/config.yml | 2 +- roles/builds.sr.ht/tasks/nginx.yml | 2 +- roles/builds.sr.ht/templates/nginx.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/builds.sr.ht/tasks/config.yml b/roles/builds.sr.ht/tasks/config.yml index b8fc81c..e9dac6f 100644 --- a/roles/builds.sr.ht/tasks/config.yml +++ b/roles/builds.sr.ht/tasks/config.yml @@ -14,7 +14,7 @@ debug-port=5002 # # Configures the SQLAlchemy connection string for the database. - connection-string=postgresql://postgres@127.0.0.1/buildsrht?sslmode=disable + connection-string=postgresql://postgres@127.0.0.1/buildssrht?sslmode=disable # # Set to "yes" to automatically run migrations on package upgrade. migrate-on-upgrade=yes diff --git a/roles/builds.sr.ht/tasks/nginx.yml b/roles/builds.sr.ht/tasks/nginx.yml index 2c42dde..d82c577 100644 --- a/roles/builds.sr.ht/tasks/nginx.yml +++ b/roles/builds.sr.ht/tasks/nginx.yml @@ -2,7 +2,7 @@ - name: Copy nginx config file ansible.builtin.template: src: nginx.conf - dest: /etc/nginx/http.d/hub.sr.ht.conf + dest: /etc/nginx/http.d/builds.sr.ht.conf register: nginxconf - name: Start & enable nginx diff --git a/roles/builds.sr.ht/templates/nginx.conf b/roles/builds.sr.ht/templates/nginx.conf index 8e848d0..d32ce1e 100644 --- a/roles/builds.sr.ht/templates/nginx.conf +++ b/roles/builds.sr.ht/templates/nginx.conf @@ -1,6 +1,6 @@ server { include sourcehut.conf; - server_name hub.{{ srht_domain }}; + server_name builds.{{ srht_domain }}; client_max_body_size 100M; -- 2.38.5