Add social
systems/hermes.scm
92 | 92 | (zones (list lepiller-slave-zone | |
93 | 93 | ipv4-reverse-master-zone | |
94 | 94 | 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)))) | |
96 | 113 | (simple-service 'tor-lepiller-http-server nginx-service-type | |
97 | 114 | (list (nginx-server-configuration | |
98 | 115 | (listen '("80" "[::]:80")) |