From 3c6998480a04076eeb2c7abdd3fff123b60ad553 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 25 Dec 2021 21:59:31 +0100 Subject: [PATCH] Add basic guiltcards setup. --- .../website/etc/nginx/sites-available/website.nginx | 5 +++++ bullseye/setup_scripts/setup_website.sh | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bullseye/etc_files/website/etc/nginx/sites-available/website.nginx b/bullseye/etc_files/website/etc/nginx/sites-available/website.nginx index cbad304..008b586 100644 --- a/bullseye/etc_files/website/etc/nginx/sites-available/website.nginx +++ b/bullseye/etc_files/website/etc/nginx/sites-available/website.nginx @@ -37,4 +37,9 @@ server { auth_basic_user_file /var/www/irclogs_pw/$1; autoindex on; } + + # location /guiltcards/ { + include uwsgi_params; + uwsgi_pass 127.0.0.1:9000; + } } diff --git a/bullseye/setup_scripts/setup_website.sh b/bullseye/setup_scripts/setup_website.sh index 99d5f4e..d2dd5e8 100755 --- a/bullseye/setup_scripts/setup_website.sh +++ b/bullseye/setup_scripts/setup_website.sh @@ -123,6 +123,9 @@ fi # TODO systemctl enable plomlombot.service # TODO service plomlombot start +# Set up guiltcards. +su -lc "git clone /var/repos/guiltcards" plom + # In the above step, we might have created a root-owned /var/www/html – # fix this here. chown -R plom:plom /var/www/html -- 2.30.2