adding in cert created on machine itself instead of some automated way
This commit is contained in:
@@ -17,6 +17,7 @@ services:
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./src/index.html:/usr/share/nginx/html/index.html
|
||||
- /etc/letsencrypt/live/flowy.live:/etc/letsencrypt/live/flowy.live
|
||||
networks:
|
||||
- nginx
|
||||
|
||||
|
||||
+17
-1
@@ -30,6 +30,12 @@ http {
|
||||
listen 443;
|
||||
server_name flowy.live;
|
||||
|
||||
# RSA certificate
|
||||
ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem; # managed by Certbot
|
||||
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
@@ -52,7 +58,11 @@ http {
|
||||
listen 443;
|
||||
server_name registry.flowy.live;
|
||||
|
||||
# TODO: add tls termination at nginx level
|
||||
# RSA certificate
|
||||
ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem; # managed by Certbot
|
||||
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
|
||||
location / {
|
||||
proxy_pass http://registry:5000;
|
||||
@@ -79,6 +89,12 @@ http {
|
||||
listen 443;
|
||||
server_name rancher.flowy.live;
|
||||
|
||||
# RSA certificate
|
||||
ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem; # managed by Certbot
|
||||
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
|
||||
location / {
|
||||
proxy_pass https://rancher;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user