Skip to content

Commit

Permalink
Merge pull request #240 from timk-lalala/patch-1
Browse files Browse the repository at this point in the history
Dockerfile 设置关闭 caddy admin
  • Loading branch information
BANKA2017 authored Apr 13, 2023
2 parents 11f8d0c + 67cab33 commit 993247e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN apk add --no-cache \
&& echo -e "max_execution_time = 3600\nupload_max_filesize=128M\npost_max_size=128M\nmemory_limit=1024M\ndate.timezone=${TZ}" > /etc/php81/conf.d/99-overrides.ini \
&& echo -e "[global]\nerror_log = /dev/stdout\ndaemonize = no\ninclude=/etc/php81/php-fpm.d/*.conf" > /etc/php81/php-fpm.conf \
&& echo -e "[www]\nuser = caddy\ngroup = caddy\nlisten = 127.0.0.1:9000\nlisten.owner = caddy\nlisten.group = caddy\npm = ondemand\npm.max_children = 75\npm.max_requests = 500\npm.process_idle_timeout = 10s\nchdir = $WORKDIR" > /etc/php81/php-fpm.d/www.conf \
&& echo -e ":8080\nroot * $WORKDIR\nlog {\n level warn\n}\nphp_fastcgi 127.0.0.1:9000\nfile_server" > /etc/caddy/Caddyfile \
&& echo -e "{\n admin off\n}\n:8080\nroot * $WORKDIR\nlog {\n level warn\n}\nphp_fastcgi 127.0.0.1:9000\nfile_server" > /etc/caddy/Caddyfile \
&& rm -rf $WORKDIR/* /var/cache/apk/* /tmp/* \
&& git config --global pull.ff only \
&& git clone --depth=1 -b master https://github.com/MoeNetwork/Tieba-Cloud-Sign $WORKDIR \
Expand Down

0 comments on commit 993247e

Please sign in to comment.