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

Option to use HTTP #14

Open
xenoryt opened this issue Jan 25, 2021 · 4 comments
Open

Option to use HTTP #14

xenoryt opened this issue Jan 25, 2021 · 4 comments

Comments

@xenoryt
Copy link

xenoryt commented Jan 25, 2021

Correct me if I'm wrong, but from what I can tell it seems the koreader/kosync docker image automatically tries to use https and provides its own certificates?

While this does make it easy to setup, I would like to have an option to disable https and have the server work with just regular http. I have traefik running as a reverse proxy in front of the server which handles https and routes traffic to the appropriate backend.

@gerroon
Copy link

gerroon commented Jul 2, 2021

Hi

Did you find a solution to this? I would like to proxy it as well.

@xenoryt
Copy link
Author

xenoryt commented Jul 4, 2021

I don't really use koreader anymore so I haven't looked deeply into this. But to get around this issue, will probably have to create your own docker image without the nginx setup in the provided image.

@sabberworm
Copy link

sabberworm commented Oct 5, 2021

It looks like there is also an HTTP config block:

https://github.com/koreader/koreader-sync-server/blob/master/config/nginx.conf#L26

Its port is 1 concatenated with the HTTPS port number (7200 unless you set GIN_PORT to something else), thus 17200 by default.

@davidwang558
Copy link

docker run -d --restart=always -p 17200:17200 -p 7200:7200 \\n    -v `pwd`/logs/app:/app/koreader-sync-server/logs \\n    -v `pwd`/logs/redis:/var/log/redis \\n    -v `pwd`/data/redis:/var/lib/redis \\n    --name=koreader_sync koreader/kosync:latest

nginx ssl proxy to 17200 is ok,tks @sabberworm

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

No branches or pull requests

4 participants