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

added ssl example #820

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

added ssl example #820

wants to merge 1 commit into from

Conversation

hansbak
Copy link

@hansbak hansbak commented Jun 30, 2024

First of thank you for this docker implementation example. I am just starting using openmrs, bare with me.

This reference is working fine using just http, however for a server on the internet ssl is required.
I looked al over the internet for an example how to add ssl certificates, but could not find any for openmrs.
I think it will be beneficial also for other users, so I added an example myself contained in the pull request.

However it has two problems you can help me with?

  1. /openmrs path: invalid or missing CRSF token.
  2. /openmrs/spa path:
    a: ResizeObserver loop completed with undelivered notifications.
    b: Uncaught Error: WorkspaceOverlay or WorkspaceWindow has provided an invalid context key: "home". The context key must be part of the URL path, with no initial or trailing slash.

if you can me give me some suggestions how to solve this , much appreciated.
Regards,
Hans Bakker

PS: To Try yourself at our server: https://app.openrationale.net/openmrs or https://app.openrationale.net/openmrs/spa

@sherrif10
Copy link
Member

Sorry about this. Could you help me with details of how to reproduce this problem. Thanks

@hansbak
Copy link
Author

hansbak commented Jul 2, 2024

@tendomart
Copy link
Contributor

tendomart commented Jul 2, 2024

Screenshot from 2024-07-02 15-15-57

@hansbak

  1. which browser are you using?
  2. Can you try restarting the your server.
    Screenshot from 2024-07-02 15-21-53

custom messages module was not started. It could be outdated for platform 2.6 which your server is running

@tendomart
Copy link
Contributor

[quote="oliebolz, post:1, topic:43103"]
CRSF token
[/quote]

@oliebolz
Do you have the latest version... of [custom messages](https://github.com/openmrs/openmrs-module-custommessage) module

I suspect the it's version needs to be updated so it can work with current versions..as you can see. It never started.

@hansbak
Copy link
Author

hansbak commented Jul 11, 2024

Some further developments....
I am using the versions from docker hub as in docker-compose.yml file, i tried to rebuild the images, that also was not successful

now I replaced the gateway with a coding similar to https://gist.github.com/dahlsailrunner/679e6dec5fd769f30bce90447ae80081 the way at in the comment at the end of the gist
An now chrome is working at https://app.openrationale.net/openmrs no CRSF errors
firefox still has the same problem.

if you need more info let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants