adding in cert created on machine itself instead of some automated way
This commit is contained in:
@@ -17,6 +17,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ./src/index.html:/usr/share/nginx/html/index.html
|
- ./src/index.html:/usr/share/nginx/html/index.html
|
||||||
|
- /etc/letsencrypt/live/flowy.live:/etc/letsencrypt/live/flowy.live
|
||||||
networks:
|
networks:
|
||||||
- nginx
|
- nginx
|
||||||
|
|
||||||
|
|||||||
+17
-1
@@ -30,6 +30,12 @@ http {
|
|||||||
listen 443;
|
listen 443;
|
||||||
server_name flowy.live;
|
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 / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
@@ -52,7 +58,11 @@ http {
|
|||||||
listen 443;
|
listen 443;
|
||||||
server_name registry.flowy.live;
|
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 / {
|
location / {
|
||||||
proxy_pass http://registry:5000;
|
proxy_pass http://registry:5000;
|
||||||
@@ -79,6 +89,12 @@ http {
|
|||||||
listen 443;
|
listen 443;
|
||||||
server_name rancher.flowy.live;
|
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 / {
|
location / {
|
||||||
proxy_pass https://rancher;
|
proxy_pass https://rancher;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Reference in New Issue
Block a user