This commit is contained in:
gauthiier
2022-03-19 13:23:29 +01:00
parent c5defb8dea
commit d86043190d
8 changed files with 119 additions and 40 deletions
+25
View File
@@ -0,0 +1,25 @@
server {
listen 80;
server_name %domain?;
rewrite ^ https://%domain?$request_uri? permanent;
}
server {
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/%domain?/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/%domain?/privkey.pem;
ssl_stapling on;
server_name %domain?;
location / {
root /home/%user?/html/%domain?;
index index.html;
}
gzip on;
error_log /home/%user?/logs/%domain?/error.log;
access_log /home/%user?/logs/%domain?/access.log;
}