Added config for al.ert.space; ex.ert.space now points to Nextcloud.

This commit is contained in:
nonphatic 2018-06-02 16:35:09 -07:00
parent 167ff651a3
commit ba98ffe587
2 changed files with 48 additions and 20 deletions

44
al.ert.space Normal file
View File

@ -0,0 +1,44 @@
server {
server_name al.ert.space;
root /srv/www/al.ert.space/app;
index index.html /server/index.php;
auth_basic "Authentication Required";
auth_basic_user_file /etc/apache2/.htpasswd;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
listen [::]:443 ssl; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/al.ert.space/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/al.ert.space/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = al.ert.space) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name al.ert.space;
return 404; # managed by Certbot
}

View File

@ -1,24 +1,9 @@
server {
root /srv/docker/syncthing/sync;
index /_h5ai/public/index.php;
server_name ex.ert.space;
auth_basic "Authentication Required";
auth_basic_user_file /etc/apache2/.htpasswd;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
listen [::]:443 ssl; # managed by Certbot
@ -37,9 +22,8 @@ server {
listen 80;
listen [::]:80;
server_name ex.ert.space;
return 404; # managed by Certbot
}
}