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

Problem using nginx #66

Open
CaptainTyphoo opened this issue May 2, 2017 · 0 comments
Open

Problem using nginx #66

CaptainTyphoo opened this issue May 2, 2017 · 0 comments

Comments

@CaptainTyphoo
Copy link

CaptainTyphoo commented May 2, 2017

I'm trying to setup anki-sync-server in combination with nginx because I want to use TLS (configured on port 27702). The anki-sync-server itself is working, I can sync when I connect directly to port 27701 over HTTP.
I used the recommended code snippet for nginx from the README page. But I had to change line
proxy_pass http://anki:27701;
to
proxy_pass http://127.0.0.1:27701;
because the orignal line was giving the error message:

nginx: [emerg] host not found in upstream "anki" in /etc/nginx/conf.d/secure.conf:92

When I press the sync button in Anki I get the error message:

Syncing failed:
AnkiWeb is under maintenance. Please try again in a few minutes.

In the logfile of nginx it says:

2017/05/03 00:24:18 [error] 2128#2128: *1783 connect() failed (111: Connection refused) while connecting to upstream, client: 1.1.1.1, server: mydomain.net, request: "POST /sync/hostKey HTTP/1.1", upstream: "http://127.0.0.1:27701/sync/hostKey", host: "mydomain.net:27702"

(I replaced my IP adress with 1.1.1.1 and the domain name of my server with mydomain.net in the error message for privacy reasons)

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

1 participant