File tree Expand file tree Collapse file tree 6 files changed +35
-31
lines changed Expand file tree Collapse file tree 6 files changed +35
-31
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# This file assumes that the frontend has been built using ./scripts/frontend-build
5
5
6
- FROM baudneo/nginx-full:certbot-node
6
+ FROM baudneo/nginx-full:bullseye- certbot-node
7
7
8
8
ARG TARGETPLATFORM
9
9
ARG BUILD_VERSION
@@ -72,4 +72,4 @@ LABEL org.label-schema.schema-version="1.0" \
72
72
org.label-schema.description="Docker container for managing Nginx proxy hosts with a simple, powerful interface " \
73
73
org.label-schema.url="https://github.com/baudneo/nginx-proxy-manager" \
74
74
org.label-schema.vcs-url="https://github.com/baudneo/nginx-proxy-manager.git" \
75
- org.label-schema.cmd="docker run --rm -ti baudneo/nginx-proxy-manager:${BASE_TAG:-latest }"
75
+ org.label-schema.cmd="docker run --rm -ti baudneo/nginx-proxy-manager:${BASE_TAG:-bullseye }"
Original file line number Diff line number Diff line change 34
34
# Can disable this (default) and add the modsec directives in each ___location block
35
35
if [ " ${MODSEC_ENABLE} " == " 1" ] || [ " ${MODSEC_ENABLE} " -eq 1 ]; then
36
36
log " Enabling modsecurity in server block of port 80 and 443"
37
- sed-patch " s|#<MODSEC_ON>|modsecurity on;|g" /etc/nginx/conf.d/default.conf
38
- sed-patch " s|#<MODSEC_RULES>|modsecurity_rules_file /etc/nginx/modsec/main.conf;|g" /etc/nginx/conf.d/default.conf
37
+ sed -i " s|#<MODSEC_ON>|modsecurity on;|g" /etc/nginx/conf.d/default.conf
38
+ sed -i " s|#<MODSEC_RULES>|modsecurity_rules_file /etc/nginx/modsec/main.conf;|g" /etc/nginx/conf.d/default.conf
39
39
fi
40
40
# Enabled modsecurity in the server block of :81 (admin dashboard)
41
41
if [ " ${MODSEC_ADMIN_PANEL} " == " 1" ] || [ " ${MODSEC_ADMIN_PANEL} " -eq 1 ]; then
42
42
log " Enabling modsecurity in server block of admin dashboard port 81"
43
- sed-patch " s|#<MODSEC_ON>|modsecurity on;|g" /etc/nginx/conf.d/production.conf
44
- sed-patch " s|#<MODSEC_RULES>|modsecurity_rules_file /etc/nginx/modsec/main.conf;|g" /etc/nginx/conf.d/production.conf
43
+ sed -i " s|#<MODSEC_ON>|modsecurity on;|g" /etc/nginx/conf.d/production.conf
44
+ sed -i " s|#<MODSEC_RULES>|modsecurity_rules_file /etc/nginx/modsec/main.conf;|g" /etc/nginx/conf.d/production.conf
45
45
46
46
fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
3
- BLUE=' \E[1;34m'
4
- CYAN=' \E[1;36m'
5
- YELLOW=' \E[1;33m'
6
- GREEN=' \E[1;32m'
7
- RED=' \E[1;31m'
8
- RESET=' \E[0m'
3
+ export BLUE=' \E[1;34m'
4
+ export CYAN=' \E[1;36m'
5
+ export YELLOW=' \E[1;33m'
6
+ export GREEN=' \E[1;32m'
7
+ export RED=' \E[1;31m'
8
+ export RESET=' \E[0m'
9
9
10
10
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
11
11
cd " ${DIR} "
12
- export DOCKER_IMAGE=baudneo/nginx-proxy-manager
12
+ export DOCKER_IMAGE=" baudneo/nginx-proxy-manager"
13
13
export MAINTAINER=
" baudneo <[email protected] >"
14
14
export REPO_OWNER=" baudneo"
15
- export BASE_TAG=' local_latest '
15
+ export BASE_TAG=' local_bullseye '
16
16
17
17
export TARGETPLATFORM=amd64
18
18
export BUILD_VERSION=dev
19
19
export BUILD_COMMIT=
20
20
export BUILD_DATE=" $( date ' +%Y-%m-%d %T %Z' ) "
21
21
export SSL_CERTS_PATH=" /etc/ssl/certs/GTS_Root_R1.pem"
22
- # echo -e "${YELLOW}❯❯❯ ${CYAN}Running ${RED}'scripts/frontend-build'${RESET}"
23
- # bash ./scripts/frontend-build
22
+ echo -e " ${YELLOW} ❯❯❯ ${CYAN} Running ${RED} 'scripts/frontend-build'${RESET} "
23
+ bash ./scripts/frontend-build
24
+ echo -e " ${YELLOW} ❯❯❯ ${CYAN} Completed ${RED} 'frontend-build'${RESET} "
24
25
# Build
25
- echo -e " ${BLUE} ❯ ${CYAN} Building Image [${DOCKER_IMAGE} ] with tag: ${YELLOW}${BASE_TAG}${CYAN} ...${RESET} "
26
+ echo -e " ${BLUE} ❯ ${CYAN} Building ${RED} LOCAL ${CYAN} Image [${DOCKER_IMAGE} ] with tag: ${YELLOW}${BASE_TAG}${CYAN} ...${RESET} "
26
27
docker build \
27
28
\
28
29
--build-arg BUILD_VERSION=" ${BUILD_VERSION:- dev} " \
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Colors
4
- BLUE=' \E[1;34m'
5
- CYAN=' \E[1;36m'
6
- GREEN=' \E[1;32m'
7
- RED=' \E[1;31m'
8
- RESET=' \E[0m'
9
- YELLOW=' \E[1;33m'
10
-
11
- export BLUE CYAN GREEN RED RESET YELLOW
4
+ export BLUE=' \E[1;34m'
5
+ export CYAN=' \E[1;36m'
6
+ export GREEN=' \E[1;32m'
7
+ export RED=' \E[1;31m'
8
+ export RESET=' \E[0m'
9
+ export YELLOW=' \E[1;33m'
12
10
13
11
# Docker Compose
14
- COMPOSE_PROJECT_NAME=" npmdev"
15
- COMPOSE_FILE=" docker/docker-compose.dev.yml"
16
-
17
- export COMPOSE_FILE COMPOSE_PROJECT_NAME
12
+ export COMPOSE_PROJECT_NAME=" npmdev"
13
+ export COMPOSE_FILE=" docker/docker-compose.dev.yml"
Original file line number Diff line number Diff line change
1
+ export BLUE=' \E[1;34m'
2
+ export CYAN=' \E[1;36m'
3
+ export GREEN=' \E[1;32m'
4
+ export RED=' \E[1;31m'
5
+ export RESET=' \E[0m'
6
+ export YELLOW=' \E[1;33m'
7
+
Original file line number Diff line number Diff line change 3
3
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4
4
. " $DIR /.common.sh"
5
5
6
- DOCKER_IMAGE=' baudneo/nginx-full:certbot-node'
6
+ DOCKER_IMAGE=' baudneo/nginx-full:bullseye- certbot-node'
7
7
8
8
# Ensure docker exists
9
9
if hash docker 2> /dev/null; then
10
10
11
- docker pull " ${DOCKER_IMAGE} "
11
+ # docker pull "${DOCKER_IMAGE}"
12
12
cd " ${DIR} /.."
13
13
echo -e " ${BLUE} ❯ ${CYAN} Building Frontend ...${RESET} "
14
14
docker run --rm -e CI=true -v " $( pwd) /frontend:/app/frontend" -v " $( pwd) /global:/app/global" \
You can’t perform that action at this time.
0 commit comments