first commit
This commit is contained in:
24
nginx/vhost-host.conf
Normal file
24
nginx/vhost-host.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
# /etc/nginx/sites-available/leerdoelen
|
||||
#
|
||||
# Vereisten op de host:
|
||||
# certbot --nginx -d leerdoelen.jouwdomein.be
|
||||
# Of als je al een wildcard cert hebt, pas ssl_certificate paden aan.
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name leerdoelen.jouwdomein.be;
|
||||
|
||||
# Certbot voegt hier automatisch de SSL redirect en het 443 blok aan toe.
|
||||
# Voer daarna uit: certbot --nginx -d leerdoelen.jouwdomein.be
|
||||
|
||||
access_log /var/log/nginx/leerdoelen.access.log;
|
||||
error_log /var/log/nginx/leerdoelen.error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
include /etc/nginx/snippets/proxy-params.conf;
|
||||
|
||||
client_max_body_size 10M;
|
||||
proxy_read_timeout 60s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user