moved to docker.dittmar.dev, since docker cli does not really allow custom paths in URIs
This commit is contained in:
@@ -39,14 +39,6 @@ server {
|
|||||||
proxy_pass http://10.222.0.2:80/;
|
proxy_pass http://10.222.0.2:80/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /docker {
|
|
||||||
return 302 /docker/;
|
|
||||||
}
|
|
||||||
location /docker/ {
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_pass http://registry:5000/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /trilium {
|
location /trilium {
|
||||||
return 302 /trilium/;
|
return 302 /trilium/;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name docker.dittmar.dev;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /.well-known/acme-challenge/ {
|
||||||
|
root /var/www/certbot;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name docker.dittmar.dev;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/dittmar.dev/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/dittmar.dev/privkey.pem;
|
||||||
|
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
|
proxy_pass http://registry:5000;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ fi
|
|||||||
|
|
||||||
certbot_path="./data/certbot"
|
certbot_path="./data/certbot"
|
||||||
rsa_key_size=4096
|
rsa_key_size=4096
|
||||||
domains=(dittmar.dev git.dittmar.dev cantropee.dittmar.dev)
|
domains=(dittmar.dev git.dittmar.dev docker.dittmar.dev cantropee.dittmar.dev)
|
||||||
email="robindittmar@gmail.com" # Adding a valid address is strongly recommended
|
email="robindittmar@gmail.com" # Adding a valid address is strongly recommended
|
||||||
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits
|
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user