Hello!
I finally got my two wordpress sites up and running with OLS and also my Matomo instance running.
However, I'm having some issues getting reverse proxy to work.
I have three websites that need to reverse proxy: a GitLab instance, a Bitwarden instance, and a Jenkins instance.
I've set up a websocket proxy for each: gitlab to the workhorse socket, jenkins to localhost:7070 where its listening, and bitwarden I have to use external app + context since /notifications/hub needs to go to docker-network:3012 and everything else to doker-network:80
However each just shows a 404 error page.
My host machine is a dedicated server running ubuntu 20.04,
Here are the relevant parts of my old Caddyfile that worked, because i'm not 100% sure how to translate it to OLS.
I finally got my two wordpress sites up and running with OLS and also my Matomo instance running.
However, I'm having some issues getting reverse proxy to work.
I have three websites that need to reverse proxy: a GitLab instance, a Bitwarden instance, and a Jenkins instance.
I've set up a websocket proxy for each: gitlab to the workhorse socket, jenkins to localhost:7070 where its listening, and bitwarden I have to use external app + context since /notifications/hub needs to go to docker-network:3012 and everything else to doker-network:80
However each just shows a 404 error page.
My host machine is a dedicated server running ubuntu 20.04,
Here are the relevant parts of my old Caddyfile that worked, because i'm not 100% sure how to translate it to OLS.
Rich (BB code):
# Ignore import cert, it's how I manage getting certificates with caddy
# Jenkins
jenkins.[scrubbed].com {
import cert
reverse_proxy 127.0.0.1:7070
}
# GitLab
git.[scrubbed].com {
import cert
encode gzip
reverse_proxy * unix//var/opt/gitlab/gitlab-workhorse/socket
}
# Cockpit
admin.[scrubbed].com {
import cert
encode gzip
reverse_proxy * localhost:9090
}
# Bitwarden
bw.[scrubbed].com {
import cert
encode gzip
header / {
Strict-Transport-Security "max-age=31536000;"
X-XSS-Protection "1; mode=block"
X-Frame-Options "DENY"
X-Robots-Tag "none"
-Server
}
reverse_proxy /notifications/hub/negotiate 172.18.0.2:80
reverse_proxy /notifications/hub 172.18.0.2:3012
reverse_proxy 172.18.0.2:80 {
header_up X-Real-IP {remote_host}
}
}