fix: actually working container

This commit is contained in:
Strix 2023-10-20 02:55:23 +02:00
parent 25c797899b
commit b6c6409cb6
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 3 additions and 12 deletions

View file

@ -5,7 +5,7 @@ RUN apk add \
certbot-nginx
COPY content /usr/share/nginx/html
COPY conf.d /etc/nginx
COPY conf.d/ /etc/nginx/conf.d/
COPY nginx.conf /etc/nginx/nginx.conf
COPY entrypoint.sh /entrypoint

View file

@ -2,6 +2,8 @@ server {
listen 80;
server_name localhost;
# SSL is managed by certbot, no need for a ssl listen; it will be generated automagically!
# default html page
location / {
root /usr/share/nginx/html;
@ -13,14 +15,3 @@ server {
root /usr/share/nginx/html;
}
}
server {
listen 443 ssl;
server_name localhost;
# SSL will be managed by certbot, no need to insert SSL config.
location / {
proxy_pass http://$host$request_uri;
}
}