~~ssh~~ https auto update

This commit is contained in:
lhy6305 2024-09-19 01:27:37 +08:00
parent 3e3cd71f34
commit 9f55868353
4 changed files with 8 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
cd /root cd /root/
apt update apt update
apt install -y --no-install-recommends nginx-core php7.4-fpm php7.4-curl php7.4-mbstring php7.4-gd apt install -y --no-install-recommends nginx-light php7.4-fpm php7.4-curl php7.4-mbstring php7.4-gd
cp --force /root/www/docker_container/nginx.conf /etc/nginx/nginx.conf cp --force /root/www/docker_container/nginx.conf /etc/nginx/nginx.conf
cp --force /root/www/docker_container/nginx-0.conf /root/nginx-0.conf cp --force /root/www/docker_container/nginx-0.conf /root/nginx-0.conf

View File

@ -36,15 +36,15 @@ http {
# Logging Settings # Logging Settings
## ##
log_format custom_log '[$time_local] ' log_format custom_log '[$time_local], '
'remote=$remote_addr:$remote_port ' 'remote=$remote_addr:$remote_port, '
'local=$server_addr:$server_port ' 'local=$server_addr:$server_port, '
'request=\n$request\n\n$request_body\n' 'request=\n$request\n\n$request_body\n'
'status=$status ' 'status=$status, len=$body_bytes_sent, '
'request_time=$request_time'; 'request_time=$request_time\n\n';
access_log /root/log/access.log custom_log; access_log /root/log/access.log custom_log;
error_log /root/log/error.log; error_log /root/log/error.log debug;
## ##
# Gzip Settings # Gzip Settings