1 Commits

Author SHA1 Message Date
c513f2ab95 no_media version 2018-11-11 18:32:35 +01:00
7 changed files with 4 additions and 18 deletions

View File

@ -7,6 +7,7 @@ pipeline:
docker: docker:
image: plugins/docker image: plugins/docker
repo: repo.shimun.net/shimun/seafile repo: repo.shimun.net/shimun/seafile
tag: no_media
registry: repo.shimun.net registry: repo.shimun.net
storage_path: /drone/.docker storage_path: /drone/.docker
secrets: ["docker_username", "docker_password"] secrets: ["docker_username", "docker_password"]

View File

@ -16,11 +16,10 @@ COPY conf /opt/seafile/conf
COPY conf /etc/seafile COPY conf /etc/seafile
COPY nginx /etc/nginx COPY nginx /etc/nginx
COPY scripts/upgrade.py /usr/local/sbin/upgrade COPY scripts/upgrade.py /usr/local/sbin/upgrade
COPY scripts/start-nginx.sh /usr/bin/start-nginx
COPY scripts/seafile-server.sh /sbin/seafile-server COPY scripts/seafile-server.sh /sbin/seafile-server
RUN ulimit -n 30000 && mkdir -p $SEAF/pids && \ RUN ulimit -n 30000 && mkdir -p $SEAF/pids && \
chmod +x /usr/local/sbin/upgrade /sbin/seafile-server /usr/bin/start-nginx chmod +x /usr/local/sbin/upgrade /sbin/seafile-server
ENV SEAF_UPGRADE_INTERVAL=3 ENV SEAF_UPGRADE_INTERVAL=3

View File

@ -16,8 +16,6 @@ http {
include seafile/*.conf; include seafile/*.conf;
include realip.conf;
include extra.conf; include extra.conf;
} }

View File

@ -1,2 +0,0 @@
real_ip_header X-Forwarded-For;
set_real_ip_from 127.0.0.1;

View File

@ -1,3 +0,0 @@
location /media {
root /opt/seafile/seafile-server-latest/seahub;
}

View File

@ -3,7 +3,7 @@
LATEST=$SEAF/seafile-server-latest LATEST=$SEAF/seafile-server-latest
PIDS=$SEAF/pids PIDS=$SEAF/pids
PIDFILES=("$PIDS" "$LATEST/runtime" "/var/run/nginx") PIDFILES=("$PIDS" "$LATEST/runtime" "/var/run/nginx")
COMMANDS=("seaf-server $LATEST/seafile.sh start" "seahub $LATEST/seahub.sh ${SEAF_HUB_MODE:-start} 8000" "nginx /usr/bin/start-nginx") COMMANDS=("seaf-server $LATEST/seafile.sh start" "seahub $LATEST/seahub.sh ${SEAF_HUB_MODE:-start} 8000" "nginx /usr/sbin/nginx")
function stop { function stop {
#Kill when hitting CTRL+C repeatedly #Kill when hitting CTRL+C repeatedly

View File

@ -1,7 +0,0 @@
#!/bin/sh
echo "$SEAF_FRONTEND" | IFS=';' while read IP; do
echo "set_real_ip_from $IP;" >> /etc/nginx/realip.conf
done
#This script is only supposed to run once
rm -f $0 && ln -s /usr/sbin/nginx $0 && /usr/sbin/nginx