nginx conf file updates #5
@ -1,3 +1,6 @@
|
|||||||
|
# initial nginx conf file needed when running certbot container the first time to generate ssl certs
|
||||||
|
# replace <HOSTNAME> with your DNS i.e.automatisch.lasthourhosting.org
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
@ -6,14 +9,14 @@ http {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 7757;
|
listen 7757;
|
||||||
server_name automatisch.lasthourhosting.org;
|
server_name <HOSTNAME>;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://main:7757;
|
proxy_pass http://<HOSTNAME>:7757;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,3 +1,6 @@
|
|||||||
|
# initial nginx conf file needed when running certbot container the first time to generate ssl certs
|
||||||
|
# replace <HOSTNAME> with your DNS i.e.automatisch.lasthourhosting.org
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
@ -6,14 +9,14 @@ http {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 7757;
|
listen 7757;
|
||||||
server_name automatisch.lasthourhosting.org;
|
server_name <HOSTNAME>;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://main:7757;
|
proxy_pass http://<HOSTNAME>:7757;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,3 +1,6 @@
|
|||||||
|
# nginx conf file to use after LetsEncrypt SSL certs have been created
|
||||||
|
# replace <HOSTNAME> with your DNS i.e.automatisch.lasthourhosting.org
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
@ -6,7 +9,7 @@ http {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 7757;
|
listen 7757;
|
||||||
server_name automatisch.lasthourhosting.org;
|
server_name <HOSTNAME>;
|
||||||
|
|
||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
@ -18,17 +21,17 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
# use ssl letsencrypt certs
|
# use ssl letsencrypt certs
|
||||||
ssl_certificate /etc/letsencrypt/live/automatisch.lasthourhosting.org/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/<HOSTNAME>/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/automatisch.lasthourhosting.org/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/<HOSTNAME>/privkey.pem;
|
||||||
server_name automatisch.lasthourhosting.org;
|
server_name <HOSTNAME>;
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://automatisch.lasthourhosting.org:7757/;
|
proxy_pass http://<HOSTNAME>:7757/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user