From d91fcd75a6bcadf1f3bbb55082cea185cf7e708a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 20 Mar 2023 11:11:36 -0300 Subject: system.scm: Move nginx /r/velhinho config to the beginning of the list --- src/infrastructure/guix/system.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/infrastructure/guix/system.scm b/src/infrastructure/guix/system.scm index e579253..0b89afc 100644 --- a/src/infrastructure/guix/system.scm +++ b/src/infrastructure/guix/system.scm @@ -377,6 +377,13 @@ (ssl-certificate-key (fmt "/etc/letsencrypt/live/~a/privkey.pem" tld)) (locations (list + (nginx-location-configuration + (uri "/r/velhinho/") + (body + '(#"- + rewrite /r/velhinho(.*) $1 break; + proxy_pass http://velhinho:4219; + "#))) (nginx-location-configuration (uri "/git/static/") (body @@ -393,14 +400,7 @@ fastcgi_param HTTP_HOST $server_name; fastcgi_pass localhost:9000; rewrite /git(.*) $1 break; - "#))) - (nginx-location-configuration - (uri "/r/velhinho/") - (body - '(#"- - rewrite /r/velhinho(.*) $1 break; - proxy_pass http://velhinho:4219; - "#))))) + "#))))) (raw-content '(#"- charset utf-8; -- cgit v1.2.3