external certs
This commit is contained in:
parent
e8a0b9383f
commit
0f05c83f4a
@ -3,4 +3,4 @@ FROM nginx:latest
|
|||||||
COPY privkey.pem /etc/nginx/
|
COPY privkey.pem /etc/nginx/
|
||||||
COPY fullchain.pem /etc/nginx/
|
COPY fullchain.pem /etc/nginx/
|
||||||
COPY default.conf /etc/nginx/conf.d/
|
COPY default.conf /etc/nginx/conf.d/
|
||||||
COPY index.html /usr/share/nginx/html/
|
COPY index.html /usr/share/nginx/html/404/
|
||||||
|
@ -14,14 +14,11 @@ server {
|
|||||||
proxy_pass http://squiz;
|
proxy_pass http://squiz;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
location /test {
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
||||||
listen 443 ssl; # managed by Certbot
|
listen 443 ssl; # managed by Certbot
|
||||||
ssl_certificate /etc/nginx/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/nginx/certs/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/nginx/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/nginx/certs/privkey.pem; # managed by Certbot
|
||||||
|
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
|
@ -6,5 +6,5 @@ services:
|
|||||||
- 443:443
|
- 443:443
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/:/usr/share/nginx/html/test/:ro
|
- ./nginx/certs/:/etc/nginx/certs/:ro
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user