Skip to content

Commit

Permalink
fix proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Dec 10, 2024
1 parent ca12813 commit a076b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docker/proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# modify time: 202412101506, you can modify here to trigger Docker Build action
# modify time: 202412101512, you can modify here to trigger Docker Build action
# from Dockerfile: https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docker/Dockerfile
# from image: https://hub.docker.com/r/jc21/nginx-proxy-manager

FROM jc21/nginx-proxy-manager:2.11.3

LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="2.11.3-rc6"
LABEL version="2.11.3"

COPY README.md /data/nginx/README.md
RUN mkdir /data/nginx/custom
RUN mkdir -p /etc/websoft9
COPY ./config/http.conf /data/nginx/custom/http.conf
COPY ./config/initproxy.conf /data/nginx/websoft999999/initproxy.conf
COPY ./config/initproxy.conf /etc/websoft9/initproxy.conf
COPY ./init_nginx.sh /app/init_nginx.sh
RUN chmod +x /app/init_nginx.sh

Expand Down
2 changes: 1 addition & 1 deletion docker/proxy/init_nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
credential_path="/data/credential"

# Migrating initproxy.conf file

if [ ! -d /data/nginx/default_host ]; then mkdir -p /data/nginx/default_host; fi
cp -f /etc/websoft9/initproxy.conf /data/nginx/default_host/initproxy.conf
[ -f /etc/websoft9/initproxy.conf ] && rm -f /data/nginx/proxy_host/initproxy.conf

Expand Down

0 comments on commit a076b23

Please sign in to comment.