[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: hydra: berlin: Add server configurations for GWL.
From: |
Ricardo Wurmus |
Subject: |
01/01: hydra: berlin: Add server configurations for GWL. |
Date: |
Tue, 14 May 2019 14:20:01 -0400 (EDT) |
rekado pushed a commit to branch master
in repository maintenance.
commit 9915291c2d40187e68d51edfc5c2c8a929579622
Author: Ricardo Wurmus <address@hidden>
Date: Tue May 14 20:18:46 2019 +0200
hydra: berlin: Add server configurations for GWL.
* hydra/nginx/berlin.scm (%berlin-servers): Add server configurations
for workflows.guix.info, guixwl.org, and www.guixwl.org for both HTTP
and HTTPS.
---
hydra/nginx/berlin.scm | 41 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 40 insertions(+), 1 deletion(-)
diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm
index f0bb2c7..3ddf854 100644
--- a/hydra/nginx/berlin.scm
+++ b/hydra/nginx/berlin.scm
@@ -235,6 +235,20 @@
(raw-content
(list
"access_log /var/log/nginx/issues-guix-info.access.log;")))
+
+ (nginx-server-configuration
+ (listen '("80"))
+ (server-name '("workflows.guix.info"
+ "guixwl.org"
+ "www.guixwl.org"))
+ (root "/home/rekado/gwl/")
+ (locations
+ (list (nginx-location-configuration
+ (uri "/")
+ (body '("proxy_pass http://localhost:5000;")))))
+ (raw-content
+ (list
+ "access_log /var/log/nginx/workflows-guix-info.access.log;")))
;; HTTPS servers
(nginx-server-configuration
@@ -303,7 +317,32 @@
"proxy_send_timeout 600;"
"proxy_read_timeout 600;"
"send_timeout 600;"
- "access_log /var/log/nginx/issues-guix-info.https.access.log;"))))))
+ "access_log /var/log/nginx/issues-guix-info.https.access.log;"))))
+
+ (nginx-server-configuration
+ (listen '("443 ssl"))
+ (server-name '("workflows.guix.info"
+ "guixwl.org"
+ "www.guixwl.org"))
+ (ssl-certificate (le "workflows.guix.info"))
+ (ssl-certificate-key (le "workflows.guix.info" 'key))
+ (root "/home/rekado/gwl/")
+ (locations
+ (list (nginx-location-configuration
+ (uri "/")
+ (body '("proxy_pass http://localhost:5000;")))))
+ (raw-content
+ (append
+ %tls-settings
+ (list
+ "proxy_set_header X-Forwarded-Host $host;"
+ "proxy_set_header X-Forwarded-Port $server_port;"
+ "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;"
+ "proxy_connect_timeout 600;"
+ "proxy_send_timeout 600;"
+ "proxy_read_timeout 600;"
+ "send_timeout 600;"
+ "access_log /var/log/nginx/workflows-guix-info.https.access.log;"))))))
(define %extra-content
(list