How to run SFTPGo behind NGINX reverse proxy? #2051
Unanswered
biomassboilers
asked this question in
Q&A
Replies: 2 comments
-
What I've tried already, without success:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm facing the same issue - can't for the life of me figure out the correct config to run SFTPGo behind a reverse proxy. Is this possible? It definitely didn't like running under an external service manager (I also used NSSM), maybe it doesn't work behind a reverse proxy... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm trying to use SFTPGo on a Windows machine behind NGINX as a reverse proxy. (in preference to Windows built-in OpenSSH, as I don't want to make new Windows users per SFTP connection)
I found that SFTPGo doesn't seem to like NSSM and would always end up as a paused service, so after trawling through the documentation, I found SFTPGo natively runs as a Windows service.
Now I can't get get it to run properly behind an NGINX reverse proxy. SFTPGo is running at
127.0.0.1:8087
and I've set NGINX to proxy that tohttp://computername.local/sftp
. However:http://computername.local/sftp
always redirects tohttp://computername.local/web/client/login
, which is 404http://computername.local/sftp/web/client/login
shows the login UI, but is missing all CSS and JS. Are the default web resources not embedded into the EXE, like e.g. filebrowser? Also, clicking any link does a redirect to the aforementioned 404 pageC:\nginx\html\
? I tried placing them underC:\nginx\html\sftpgo\
and adjustingsftpgo.json
accordingly, but the pagehttp://computername.local/sftp/web/client/login
refuses to load the web resources from anywhere but web root.Here's my nginx.conf, which is basically vanilla but references serverstack.conf where I actually set stuff up:
Here is serverstack.conf:
Here's my sftpgo.json:
sftpgo is being run via
sftpgo service start
What am I doing wrong?
I have told SFTPGo to run as a service, where to load web resources from and where to run, and it runs as a service, refuses to load web resources and refuses to run properly on subdomains.
Beta Was this translation helpful? Give feedback.
All reactions