From 41c3a5b56a105c6f45183c581d8b5968947f3475 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 31 Dec 2021 17:47:41 +0100 Subject: [PATCH] Minor fixes. --- .../etc_files/dumpsite/etc/nginx/sites-available/dumpsite.nginx | 1 + bullseye/setup_scripts/setup_dumpsite.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bullseye/etc_files/dumpsite/etc/nginx/sites-available/dumpsite.nginx b/bullseye/etc_files/dumpsite/etc/nginx/sites-available/dumpsite.nginx index 25c2d62..9b57587 100644 --- a/bullseye/etc_files/dumpsite/etc/nginx/sites-available/dumpsite.nginx +++ b/bullseye/etc_files/dumpsite/etc/nginx/sites-available/dumpsite.nginx @@ -7,6 +7,7 @@ server { location /dump/ { autoindex on; + # add_header "Access-Control-Allow-Origin" *; } location /geheim/ { diff --git a/bullseye/setup_scripts/setup_dumpsite.sh b/bullseye/setup_scripts/setup_dumpsite.sh index 4d1a14e..35f7c8e 100755 --- a/bullseye/setup_scripts/setup_dumpsite.sh +++ b/bullseye/setup_scripts/setup_dumpsite.sh @@ -78,7 +78,7 @@ su -lc "ln -s /home/plom/blog/public /var/www-dump/blog" plom # Set up url catcher. # TODO: set up like plomlombot repo (with post-recieve hook)? -if [ "$repos_source" = "local"]; then +if [ "$repos_source" = "local" ]; then su -lc "git clone /var/repos/url-catcher" plom else su -lc "git clone https://plomlompom.com/repos/clone/url-catcher" plom -- 2.30.2