Replies: 1 comment
-
A follow up post. I have got a couple of workarounds to fix the above issues. Although these work, I'd still appreciate any working code or advice on how others are using OAuth on multiple domains. Thanks. >> FIX OAUTH REDIRECT ERRORSPreviously, after a succesful OAuth login, I was redirected to The workaround is to add another OAuth container with the Although this works, I'm sure it's not necessary to have multiple OAuth containers but I just don't know how to get it working with only 1. >> FIX MIXED CONTENT ERRORSTo stop the errors that I had when HTML on domain2.com loads over a secure HTTPS connection I added the following to
Although this works, I don't know why it is required when it's not needed on |
Beta Was this translation helpful? Give feedback.
-
I followed the Wordpress tutorial and have everything working as per the tutorial;
I added the following;
The result is;
However, I'm having the following issues;
The page at https://www.domain2.com/ was not allowed to run insecure content from http://www.domain2.com/wp-includes/js/wp-emoji-release.min.js?ver=5.8.2
https://domain2.com/wp-admin
I get the Google OAuth screen and login but it returns me to the sites homepage. Maybe this is to do with what URL I have entered in the Authorised redirect URIs section of the Google dev console?It seems to be something to do with OAuth or redirections or the Traefik routing on the Nginx container. You can't add multiple
AUTH_HOST
to the OAuth container so you have to manually add Authorised redirect URIs to the Google dev console but maybe I'm adding them wrong? Maybe I've setup the Traefik routing on the Nginx container wrong?Anyway, here's my additions. I use a slightly different folder layout and PATH variables but I don't think that is an issue here. Maybe you have working code for adding more Wordpress domains or more specifically more sites that mix auth and no-auth and have www redirections.
Thanks.
docker-compose.yml traefik
docker-compose.yml Nginx
domain2.conf
Beta Was this translation helpful? Give feedback.
All reactions