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

Allow custom nginx configuration #139

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

woodspire
Copy link

allow to use a custom nginx config file

building the docker container with:

-v /nginx.seafile.conf:/etc/nginx/sites-enabled/nginx.seafile.conf
-e SEAFILE_SERVER_NGINX_CONF_CUSTOM=1

allow to use a custom nginx config file
Specify how to use new switch
oups.
Map folder instead of file
Copy link

@nekatak nekatak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with these changes. I have many issues caused from the nginx in the seafile container. For example running another reverse proxy before you cannot update anyhow client IPs and you cannot allow custom timeouts. This is a very useful change.

Of course an easy workaround for anyone interested to fix any issues is to simply mount a custom /etc/nginx/nginx.conf with the config and not include sites-enabled folder in it. Same thing as fix above more or less.

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

Successfully merging this pull request may close these issues.

2 participants