-
Notifications
You must be signed in to change notification settings - Fork 2
-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to selfhost plugin? #1
Comments
I need to have some more info to validate where the problem lies, so I have some questions:
Then I am wondering how you installed the api server:
|
Then I have nginx configuration to access my nomie, CouchDB, and nomie API server:
I was trying to setup nomie API server to separate domain, but I receive CORS issue as well, the same CORS issue, when I try to use api.dailynomie.com as nomie API server I am pretty sure, that if I host a plugin on my domain - the CORS issue should be gone, but I don't know how can I host plugin. |
I was trying to create dockerfile for this repo:
But it still listening on localhost :
And I can't reach it by external IP |
Hi, I have create an docker image for the plugin: it exposes port 5000. Can you try using this image, running on your own domain? I am curious if this will indeed solve the problem. Regards, |
Apologies, I made an error in the image. |
Thank you for your efforts! |
Hi, Can you please explain me more precise when the cors issue is happening in the process?
I assume that you get the error at step 4? That is the communication between the API server and the Plugin which takes place totally outside the Nomie App (technically) |
I took the liberty to test with your domain. Something strange is happening as I was able to:
So it is working. From experience I know that sometimes working within your own network, behind your own router can give unexpected results. |
I was trying to set up plugin using https://dailynomie.github.io/nomie-plugin-api/
Then I setup the API server on the same domain and my nomie with but with prefix
/ui
: https://github.com/RdeLange/nomie-server-apiBut when I am trying to setup the API server - I catch CORS issue in the browser as soon as the plugin origin: dailynomie.github.io does not match the domain of my server.
Soluiton would be to store the plugin itself on my domain, but how can I do it?
The text was updated successfully, but these errors were encountered: