damp-journalist-21932
04/19/2022, 12:55 PMory proxy <http://localhost>:<port> https://<domain>
After doing this, the proxy does tell me to access the website using https://<domain>
However, when I get to the sign-in page, it is showing http://<domain> and not https://<domain> for the form-action.
I am using NGINX as a proxy. Other than proxy_pass, the following is set:
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
I also set proxy buffering to ON, as I saw the http context was breaking. However, it still caused this http://<domain> issue in the ManagedUI form regardless.
Now, if I do enter my username and password, the browser asks me if I should still send it. If I send anyway, I get the "POST, PUT, PATCH" error appearing.
Please can you kindly assist?
Thank you and God bless!high-optician-2097
damp-journalist-21932
04/19/2022, 2:48 PMproud-plumber-24205
04/19/2022, 3:14 PMdamp-journalist-21932
04/19/2022, 3:18 PMproud-plumber-24205
04/19/2022, 5:07 PMproud-plumber-24205
04/19/2022, 5:09 PMory proxy <http://127.0.0.1:3001> <https://exampleapp.ory:8080> --sdk-url https://<project-sdk> --cookie-domain <https://exampleapp.ory:8080>
Please take note here I use the port 8080 since this is a custom domain on my local machine /etc/hosts
is pointing exampleapp.ory
to 127.0.0.1
.
Then I have setup a reverse proxy through Caddy to add tls certificates.proud-plumber-24205
04/19/2022, 5:10 PMexampleapp.ory:8080
to the proxy running on port 4000.
exampleapp.ory:8080 {
reverse_proxy exampleapp.ory:4000
tls internal
}
damp-journalist-21932
04/19/2022, 5:57 PMproud-plumber-24205
04/19/2022, 7:07 PMproud-plumber-24205
04/19/2022, 7:07 PMdamp-journalist-21932
04/19/2022, 9:26 PMdamp-journalist-21932
04/19/2022, 9:27 PMproud-plumber-24205
04/20/2022, 6:40 AMdamp-journalist-21932
04/20/2022, 7:01 AMdamp-journalist-21932
04/20/2022, 8:57 AMproxy_set_header X-Forwarded-Proto $scheme
so the https protocol could be forwarded. God bless! šš„proud-plumber-24205
04/20/2022, 8:58 AMproud-plumber-24205
04/20/2022, 9:02 AMmagnificent-energy-493