update git services and move social
systems/ene.scm
| 34 | 34 | ||
| 35 | 35 | (use-modules (config certbot) (config dns) (config iptables) | |
| 36 | 36 | (config mail) (config os) (config static-web) | |
| 37 | + | (config web) | |
| 37 | 38 | (services gitile) (packages gitile)) | |
| 38 | 39 | ||
| 39 | 40 | ;; Copy from (gnu bootloader u-boot) | |
… | |||
| 90 | 91 | (certbot-service `(("courriel.lepiller.eu" "imap.lepiller.eu") | |
| 91 | 92 | ("ene.lepiller.eu" "rennes.lepiller.eu") | |
| 92 | 93 | ("avatar.lepiller.eu") | |
| 93 | - | ("git.lepiller.eu"))) | |
| 94 | + | ("git.lepiller.eu") | |
| 95 | + | ("social.lepiller.eu"))) | |
| 94 | 96 | (service nginx-service-type) | |
| 95 | 97 | (service php-fpm-service-type) | |
| 96 | 98 | (service fcgiwrap-service-type | |
… | |||
| 113 | 115 | "/etc/letsencrypt/live/ene.lepiller.eu/privkey.pem") | |
| 114 | 116 | (listen '("443 ssl http2" "[::]:443 ssl http2")) | |
| 115 | 117 | (server-name '(default))(root "/srv/http/default")))) | |
| 118 | + | (simple-service 'social-http-server nginx-service-type | |
| 119 | + | (list (nginx-server-configuration | |
| 120 | + | (ssl-certificate "/etc/letsencrypt/live/social.lepiller.eu/fullchain.pem") | |
| 121 | + | (ssl-certificate-key "/etc/letsencrypt/live/social.lepiller.eu/privkey.pem") | |
| 122 | + | (listen '("443 ssl http2" "[::]:443 ssl http2")) | |
| 123 | + | (server-name '("social.lepiller.eu")) | |
| 124 | + | (root "/srv/http/social/public") | |
| 125 | + | (locations | |
| 126 | + | (list | |
| 127 | + | (nginx-location-configuration | |
| 128 | + | (uri "/content/") | |
| 129 | + | (body '("alias /var/lib/social/user-data/public/;"))) | |
| 130 | + | (nginx-location-configuration | |
| 131 | + | (uri "/") | |
| 132 | + | (body '("proxy_pass http://localhost:8081;"))))) | |
| 133 | + | (raw-content default-web-policy)))) | |
| 116 | 134 | (service gitile-service-type) | |
| 117 | 135 | (simple-service 'git-server nginx-service-type | |
| 118 | 136 | (list (nginx-server-configuration | |
… | |||
| 161 | 179 | (rc-file | |
| 162 | 180 | (gitolite-rc-file | |
| 163 | 181 | (umask #o0027) | |
| 164 | - | (git-config-keys "gitweb.*")))))) | |
| 182 | + | (git-config-keys ".*")))))) | |
| 165 | 183 | (modify-services | |
| 166 | 184 | (lepiller-mail-services | |
| 167 | 185 | #:interface "eth0" | |
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") | |
| 96 | - | ("social.lepiller.eu"))) | |
| 95 | + | (certbot-service `(("lepiller.eu" "www.lepiller.eu" "smtp.lepiller.eu"))) | |
| 97 | 96 | (simple-service 'social-http-server nginx-service-type | |
| 98 | 97 | (list (nginx-server-configuration | |
| 99 | 98 | (ssl-certificate "/etc/letsencrypt/live/social.lepiller.eu/fullchain.pem") |