mirror of
https://github.com/KevinMidboe/nginx.git
synced 2025-10-29 09:40:26 +00:00
27 lines
575 B
Plaintext
27 lines
575 B
Plaintext
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name blockchain.schleppe.cloud;
|
|
|
|
more_set_headers Upgrading Connection;
|
|
return 302 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name blockchain.schleppe.cloud;
|
|
|
|
location / {
|
|
root /home/kevin/blockchain;
|
|
autoindex off;
|
|
index index.html;
|
|
}
|
|
|
|
ssl_certificate /etc/letsencrypt/live/blockchain.schleppe.cloud/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/blockchain.schleppe.cloud/privkey.pem; # managed by Certbot
|
|
}
|