Closed AlexVonB closed 3 years ago
Hi all!
The nginx config file is not accessible in the /shared volume. This is related to https://github.com/haiwen/seafile-docker/issues/219#issuecomment-631957421 as it would enable us to update the nginx config file ourselves.
nginx
/shared
When calling start.sh, the script creates shared folders:
start.sh
https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/start.py#L45-L48
and then calls generate_local_nginx_conf
generate_local_nginx_conf
https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/start.py#L52
which tries to move the nginx config file to the shared folder /shared/nginx and then tries to link it to /etc/
/shared/nginx
/etc/
https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/bootstrap.py#L97
But the shared folder /shared/nginx is never created, so the moving and linking fails.
Create the folder /shared/nginx in start.py.
start.py
Thanks!
This only happens on 7.0, so it wont be relevant. Closing this.
Hi all!
Problem
The
nginx
config file is not accessible in the/shared
volume. This is related to https://github.com/haiwen/seafile-docker/issues/219#issuecomment-631957421 as it would enable us to update thenginx
config file ourselves.Cause
When calling
start.sh
, the script creates shared folders:https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/start.py#L45-L48
and then calls
generate_local_nginx_conf
https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/start.py#L52
which tries to move the nginx config file to the shared folder
/shared/nginx
and then tries to link it to/etc/
https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/bootstrap.py#L97
But the shared folder
/shared/nginx
is never created, so the moving and linking fails.Solution
Create the folder
/shared/nginx
instart.py
.Thanks!