Add social

Julien LepillerThu Dec 12 23:15:29+0100 2019

10c79ce

Add social

systems/hermes.scm

9292
                   (zones (list lepiller-slave-zone
9393
                                ipv4-reverse-master-zone
9494
                                ipv6-reverse-master-zone))))
95-
        (certbot-service `(("lepiller.eu" "www.lepiller.eu" "smtp.lepiller.eu")))
95+
        (certbot-service `(("lepiller.eu" "www.lepiller.eu" "smtp.lepiller.eu")
96+
                           ("social.lepiller.eu")))
97+
        (simple-service 'social-http-server nginx-service-type
98+
          (list (nginx-server-configuration
99+
                  (ssl-certificate "/etc/letsencrypt/live/social.lepiller.eu/fullchain.pem")
100+
                  (ssl-certificate-key "/etc/letsencrypt/live/social.lepiller.eu/privkey.pem")
101+
                  (listen '("443 ssl http2" "[::]:443 ssl http2"))
102+
                  (server-name '("social.lepiller.eu"))
103+
                  (root "/srv/http/social/public")
104+
                  (locations
105+
                    (list
106+
		      (nginx-location-configuration
107+
			(uri "/content/")
108+
			(body '("alias /var/lib/social/user-data/public/;")))
109+
                      (nginx-location-configuration
110+
                        (uri "/")
111+
                        (body '("proxy_pass http://localhost:8080;")))))
112+
                  (raw-content default-web-policy))))
96113
        (simple-service 'tor-lepiller-http-server nginx-service-type
97114
          (list (nginx-server-configuration
98115
                  (listen '("80" "[::]:80"))