matt.m
January 22, 2020, 5:13pm
1
Hi Everyone!
I am having issues understanding how to/if I can have Caddy that was installed through a snap install of Rocket.Chat handle SSL for other applications? I am trying to SSL my install of Bitwarden, and I thought that since I had Caddy already installed, I could also SSL Bitwarden through Caddy. I can’t seem to get this to work.
Has anyone else tried to SSL multiple subdomains through a snap install of Caddy?
Thanks!
1 Like
Klagio
January 26, 2020, 10:18pm
2
This is my Caddyfile
basically
https ://xxx-server2.duckdns.org redirects to http ://192.168.1.12;8123
https ://xxx-server1.duckdns.org redirects to http ://192.168.1.7;8065
xxx-server2.duckdns.org {
tls {
dns duckdns
}
log data/requests.log {
rotate_size 50 # Rotate after 50 MB
rotate_age 90 # Keep rotated files for 90 days
rotate_keep 20 # Keep at most 20 log files
rotate_compress # Compress rotated log files in gzip format
}
header / {
Strict-Transport-Security "max-age=31536000; includeSubdomains"
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
Referrer-Policy "same-origin"
-Server
}
proxy / 192.168.1.12:8123 {
websocket
transparent
header_upstream Authorization {>Authorization}
}
}
xxx-server2.duckdns.org {
tls {
dns duckdns
}
log data/requests.log {
rotate_size 50 # Rotate after 50 MB
rotate_age 90 # Keep rotated files for 90 days
rotate_keep 20 # Keep at most 20 log files
rotate_compress # Compress rotated log files in gzip format
}
header / {
Strict-Transport-Security "max-age=31536000; includeSubdomains"
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
Referrer-Policy "same-origin"
-Server
}
proxy / 192.168.1.7:8065 {
websocket
transparent
header_upstream Authorization {>Authorization}
}
}
what I am trying to achieve for my third server (Rocketchat) a sort of passthorught from Caddy to Nginx installed in the VM where ROCKETCHAT server is
I think I am trying to do the same
Hi, I succesfully installed Rocketchat server on a Ubuntu server 18.04 VM with DOCKER and NGINX in my home LAN and works great. So I know the installation is fine.
But now I need to fix the installation according my home LAN specifications that has other 2 servers.
Basically my situation is as below
Internet ===> Router port 443 ===> Caddy proxy server ====> http://server1
====> http://server2
…