servnest-mkosi/mkosi.extra/etc/nginx/sites/subdomain.conf

13 lines
317 B
Plaintext
Raw Normal View History

2022-12-22 02:07:26 +01:00
server {
listen [::1]:42443 ssl http2;
listen 127.0.0.1:42443 ssl http2;
2023-01-29 21:14:36 +01:00
server_name "~^(?<subdomain>[a-z0-9]{1,32})\.ht\.servnest\.test$";
2022-12-22 02:07:26 +01:00
include inc/ht-tls.conf;
2023-01-29 21:14:36 +01:00
ssl_certificate /etc/ssl/certs/servnest.crt;
ssl_certificate_key /etc/ssl/private/servnest.key;
2022-12-22 02:07:26 +01:00
2023-01-29 21:14:36 +01:00
root /srv/servnest/subdomain/${subdomain}/;
2022-12-22 02:07:26 +01:00
}