Skip to content

Allow custom nginx configuration - #139

Open
woodspire wants to merge 4 commits into
haiwen:masterfrom
woodspire:master
Open

Allow custom nginx configuration#139
woodspire wants to merge 4 commits into
haiwen:masterfrom
woodspire:master

Conversation

@woodspire

Copy link
Copy Markdown

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

@nekatak nekatak left a comment

Copy link
Copy Markdown

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