fix: actually working container
This commit is contained in:
parent
25c797899b
commit
b6c6409cb6
2 changed files with 3 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue