initial commit
This commit is contained in:
29
nginx/conf/nginx.conf
Normal file
29
nginx/conf/nginx.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name benchcoach.online www.benchcoach.online;
|
||||
server_tokens off;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://benchcoach.online$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 default_server ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name benchcoach.online;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/live/benchcoach.online/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/benchcoach.online/privkey.pem;
|
||||
|
||||
location / {
|
||||
# ...
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user