Yesterday I installed the newest Seafile version 9.0.16 with docker on my Debian 11. It’s the first time I am working with docker.
According to the official installation instructions (sorry I can’t insert the link) I installed the Seafile Server version 9.0.16 with docker on an Debian 11 x64. On the Seafile Server I am working only with HTTP (80) and without HTTPs (443) and certificates
I have a seperate NGINX Sever (Debian 11 x64) and there I am using HTTPs.
I could not upload the nginx conifg, I tried, but unfortunately I always got the message, because I am new I can only upload one picture and no links or anything else.
Here you can see my environment and some informations from the installion (sorry I had to merge all images in one:
Without nginx all works fine but if I want to use nginx I get a bad gateway error.
I don’t know my nginx conifg is wrong (I’m sorry I could no upload) I dont know I have to forward some extra ports (8000, 8080, 8082) on the seafile server or in the docker container. I don’t know there is a permission issue, because seafile and nginx runs on seperate servers.
Hi, we’ll need your nginx config, don’t do a screenshot as you can’t upload it but just copy/paste it. You can use a 3 backticks (```) block to preserve formatting:
some nginx config
What I can tell so far is that you’ll have to change http to https in SERVICE_URL and FILE_SERVER_ROOT, it should prevent future (but not current) errors.
This is not needed, there is an internal nginx server in the container which dispatches requests to the right service.
Maybe if you have some kind of firewall. Bad gateway means the connection was refused, and a firewall is one possible cause. But I wouldn’t bet on it.
Finally, I’ve answered some questions on the same topic, giving some nginx config samples, maybe you’ll find something useful:
If I understood it corretly, out of the box in debian is no firewall installed or active. From the nginx server I did some telnet tests. 192.168.5.202 80, 192.168.5.202 8000 etc. and only by 192.168.5.202 80 the port was open. Therefore the question whether one would still have to forward something with the container.
Thank you very much for your hint. Now I can reach the login page. But when I try to log in, nothing happens. Is there something else wrong in my conf file? Maybe I have also to change the other ports?
Thank you very much. Now it’s look like all (login, down- and upload) works like expected
I have another question about the licenses. I have installed the PE and up to three users, this license is also free. Do I still have to apply for this license somewhere? Or is that already okay so?
You can get pro edition free for 3 users by register an account in our customer center. Note, you don’t need a license file to run the pro edition for 3 users.