system/nginx/03/psy.conf
Georg 4048b8c556
Initial nginx run 03/05
Signed-off-by: Georg <georg@lysergic.dev>
2021-08-30 20:57:05 +02:00

27 lines
944 B
Plaintext

server {
include listen01_80;
server_name psy.wiki www.psy.wiki;
root /srv/www/parking/psy;
index index.html;
}
server {
include listen01_80;
server_name ~^(?<subdomain>[\w-]+)\.psy\.wiki$;
return 302 'https://psychonautwiki.org/wiki/?search=$subdomain';
}
server {
include listen01_443;
server_name psy.wiki www.psy.wiki;
ssl_certificate /etc/ssl/drugs/fullchain.pem;
ssl_certificate_key /etc/ssl/drugs/private/privkey.pem;
root /srv/www/parking/psy;
index index.html;
}
server {
include listen01_443;
server_name ~^(?<subdomain>[\w-]+)\.psy\.wiki$;
ssl_certificate /etc/ssl/drugs/fullchain.pem;
ssl_certificate_key /etc/ssl/drugs/private/privkey.pem;
return 302 'https://psychonautwiki.org/wiki/?search=$subdomain';
}