update: scaffolding for nginx
This commit is contained in:
parent
d89dd4f315
commit
fb48a0fa04
7 changed files with 163 additions and 24 deletions
26
nginx/conf/default.conf
Normal file
26
nginx/conf/default.conf
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# this allows the redirection of `http://domain/URL` to `https://domain/URL`
|
||||
server {
|
||||
charset UTF-8;
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name $NGINX_DOMAIN;
|
||||
|
||||
if ($host = example.com) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
return 404;
|
||||
}
|
||||
|
||||
server {
|
||||
charset UTF-8;
|
||||
listen [::]:443 ssl;
|
||||
listen 443 ssl;
|
||||
server_name $NGINX_DOMAIN;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
|
||||
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
|
||||
ssl_protocols TLSv1.3;
|
||||
|
||||
include conf.d/locations/*.conf;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue