Skip to content
Snippets Groups Projects
Verified Commit ece940ee authored by Florian Pritz's avatar Florian Pritz
Browse files

dbscripts: Reenable http vhost


A simple redirect breaks the syncrepo script because it doesn't follow
redirects. Copy the vhost for now and deduplicate it later.

Signed-off-by: default avatarFlorian Pritz <bluewind@xinu.at>
parent 9d368337
No related branches found
No related tags found
No related merge requests found
...@@ -2,12 +2,45 @@ server { ...@@ -2,12 +2,45 @@ server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name {{ repos_domain }}; server_name {{ repos_domain }};
root /srv/ftp;
include snippets/letsencrypt.conf; include snippets/letsencrypt.conf;
location / { satisfy any;
rewrite ^(.*) https://$server_name$1;
location /lastupdate {
allow all;
} }
# Server at velocitynet
allow 66.211.214.130; # dom0.archlinux.org.
allow 66.211.214.131; # gudrun.archlinux.org.
allow 66.211.214.132; # gerolde.archlinux.org.
allow 2001:470:1f10:717::2/128; # gerolde's tunnel IP
# Thomas' home
#allow 87.193.186.180; # port-87-193-186-180.static.qsc.de.
allow 2001:1a80:3026::/48;
# orion.archlinux.org
allow 88.198.91.70;
allow 2a01:4f8:160:6087::1;
# brynhild.archlinux.org
allow 176.9.18.112;
allow 2a01:4f8:150:1261::2;
# alberich.archlinux.org
allow 216.151.172.98;
# allison.archlinux.de
allow 144.76.107.12;
allow 2a01:4f8:192:520b::2;
auth_basic "Restricted";
auth_basic_user_file auth/dbscripts.htpasswd;
autoindex on;
} }
server { server {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment