ctucx.git: ansible-configs

My personal ansible roles and playbooks

commit cd7d509fd4ee63ba6c86ce2617f770299b29739e
parent 9716657b52e049dad4b79a161258b0b7e27c476f
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 6 May 2021 12:01:23 +0200

configuration/lollo: nginx-vhost for a stupid meme, ooops
1 file changed, 14 insertions(+), 0 deletions(-)
M
configuration/lollo.yml
|
14
++++++++++++++
diff --git a/configuration/lollo.yml b/configuration/lollo.yml
@@ -215,6 +215,9 @@ services:
       influx.home.ctu.cx:
         renewTasks:
           - systemctl restart nginx
+      meme.ctu.cx:
+        renewTasks:
+          - systemctl restart nginx
 
   php_fpm:
     enable: true

@@ -312,6 +315,17 @@ services:
             "
           - path: /assets/
             extraConfig: "alias /usr/share/webapps/webmusic-nginx/;"
+      meme.ctu.cx:
+        root: /var/lib/websites/meme.ctu.cx
+        extraConfig: "
+          try_files $uri $uri/ /index.php?$query_string;
+        "
+        enablePhpSupport: true
+        phpSocket: /run/php-fpm/php-fpm.sock
+        ssl:
+          enable: true
+          cert: "/var/lib/acme-redirect/live/meme.ctu.cx/fullchain"
+          privkey: "/var/lib/acme-redirect/live/meme.ctu.cx/privkey"
 
   hostapd:
     enable: false