-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
121 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ app.ini | |
dist | ||
*.exe | ||
*.po~ | ||
nginx-ui-server | ||
nginx-ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags "-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui-server -v main.go | ||
FROM --platform=linux/amd64 uozi/nginx-ui-demo-debian-base-slim:latest | ||
# CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags "-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go | ||
FROM --platform=linux/amd64 uozi/nginx-ui-base:latest | ||
WORKDIR /app | ||
EXPOSE 80 | ||
COPY ./resources/demo/nginx.conf /etc/nginx/sites-available/default | ||
COPY ./resources/demo/app.ini /app/app.ini | ||
COPY ./resources/demo/demo.db /app/database.db | ||
COPY ./resources/demo/start.sh /app/start.sh | ||
COPY ./nginx-ui-server /app/nginx-ui | ||
RUN cd /app && chmod a+x start.sh | ||
CMD ["./start.sh"] | ||
EXPOSE 80 443 | ||
|
||
COPY resources/docker/start.sh /app/start.sh | ||
COPY resources/docker/nginx.conf /usr/etc/nginx/nginx.conf | ||
COPY resources/docker/nginx-ui.conf /usr/etc/nginx/conf.d/default.conf | ||
COPY ./nginx-ui /app/nginx-ui | ||
|
||
RUN cd /app && chmod a+x /app/start.sh | ||
|
||
ENTRYPOINT ["./start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc \ | ||
CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags \ | ||
"-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go | ||
|
||
docker build -t nginx-ui-demo . | ||
docker tag nginx-ui-demo uozi/nginx-ui-demo | ||
docker push uozi/nginx-ui-demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/bin/bash | ||
CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags "-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui-server -v main.go | ||
docker build -t nginx-ui-demo . | ||
docker tag nginx-ui-demo uozi/nginx-ui-demo | ||
docker push uozi/nginx-ui-demo | ||
CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc \ | ||
CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags \ | ||
"-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go | ||
|
||
docker build -t nginx-ui . | ||
docker tag nginx-ui uozi/nginx-ui | ||
docker push uozi/nginx-ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags "-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go | ||
FROM --platform=linux/amd64 uozi/nginx-ui-base:latest | ||
WORKDIR /app | ||
EXPOSE 80 | ||
|
||
COPY resources/demo/app.ini /etc/nginx-ui/app.ini | ||
COPY resources/demo/demo.db /etc/nginx-ui/database.db | ||
COPY resources/docker/nginx.conf /etc/nginx/nginx.conf | ||
COPY resources/docker/nginx-ui.conf /etc/nginx/conf.d/nginx-ui.conf | ||
COPY resources/docker/start.sh /app/start.sh | ||
COPY nginx-ui /app/nginx-ui | ||
|
||
RUN cd /app && chmod a+x start.sh | ||
|
||
|
||
ENTRYPOINT ["./start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"1.4.1","build_id":3,"total_build":66} | ||
{"version":"1.4.1","build_id":4,"total_build":67} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
user nginx; | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
#tcp_nopush on; | ||
|
||
keepalive_timeout 65; | ||
|
||
gzip on; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
include /etc/nginx/sites-enabled/*; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
if [ "$(ls -A /etc/nginx)" = "" ]; then | ||
echo "Initialing Nginx config dir" | ||
cp -rp /usr/etc/nginx/* /etc/nginx/ | ||
echo "Initialed Nginx config dir" | ||
fi | ||
|
||
nginx | ||
/app/nginx-ui --config /etc/nginx-ui/app.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters