Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connected App - http on https installation #24912

Closed
swartzlib7 opened this issue Feb 18, 2024 · 5 comments
Closed

Connected App - http on https installation #24912

swartzlib7 opened this issue Feb 18, 2024 · 5 comments

Comments

@swartzlib7
Copy link

Not sure why this is happening.
I used docker Easy Install script and added the SSL frontend labes to allow https as follow:

labels:
  - "traefik.enable=true"
  - "traefik.http.routers.frontend.rule=Host(`${SITES}`)"
  - "traefik.http.routers.frontend.entrypoints=websecure"
  - "traefik.http.routers.frontend.tls.certresolver=myresolver"

I get this error:

image

@git-avc
Copy link
Contributor

git-avc commented Feb 18, 2024

Hi @swartzlib7:

Check your site_config.json
Is there host entry like this?

"host_name": "https://test.myhost.com"

Hope this helps.

@swartzlib7
Copy link
Author

swartzlib7 commented Feb 19, 2024

Thank you for helping me!

I tried this, but get an empty config file. I tried adding the JSON, but still no luck. I also tried the common config file which did have some contents, but also didn't work.

sudo docker run --rm -it -v frappe_docker_sites:/sites alpine vi /sites/site_config.json

I just connected to the back-end container and confirmed that both site_config.json and the common config has both the https version of the host name inside. This may very well be a bug. The site is operational on https, but the OAuth Redirect URL is on http.

Can this be reproduced? I'm running ERPNext v15.14.3

@git-avc
Copy link
Contributor

git-avc commented Feb 19, 2024

Hi @swartzlib7:

Each site has their own site_config.json ... so right path should be

/sites/yoursite/site_config.json

It's empty?

@swartzlib7
Copy link
Author

Hi @git-avc,

thank you. I was looking in the wrong place. I see what you mean - there is a site directory named according to the site name I configured during installation. I updated it and it's working!

I appreciate your help.

image

image

@swartzlib7
Copy link
Author

Above solution fixed this for me. Thanks again.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants