File tree Expand file tree Collapse file tree 12 files changed +147
-8
lines changed Expand file tree Collapse file tree 12 files changed +147
-8
lines changed Original file line number Diff line number Diff line change 1
- 2.7.3
1
+ 2.8.0
Original file line number Diff line number Diff line change 1
1
<p align =" center " >
2
2
<img src="https://nginxproxymanager.com/github.png">
3
3
<br><br>
4
- <img src="https://img.shields.io/badge/version-2.7.3 -green.svg?style=for-the-badge">
4
+ <img src="https://img.shields.io/badge/version-2.8.0 -green.svg?style=for-the-badge">
5
5
<a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager">
6
6
<img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge">
7
7
</a>
@@ -229,6 +229,32 @@ Special thanks to the following contributors:
229
229
<br /><sub><b>Kyle Harding</b></sub>
230
230
</a>
231
231
</td>
232
+ <td align="center">
233
+ <a href="https://github.com/ahgraber">
234
+ <img src="https://avatars.githubusercontent.com/u/24922003?s=460&u=8376c9f00af9b6057ba4d2fb03b4f1b20a75277f&v=4" width="80px;" alt=""/>
235
+ <br /><sub><b>Alex Graber</b></sub>
236
+ </a>
237
+ </td>
238
+ </tr>
239
+ <tr>
240
+ <td align="center">
241
+ <a href="https://github.com/MooBaloo">
242
+ <img src="https://avatars.githubusercontent.com/u/9493496?s=460&v=4" width="80px;" alt=""/>
243
+ <br /><sub><b>MooBaloo</b></sub>
244
+ </a>
245
+ </td>
246
+ <td align="center">
247
+ <a href="https://github.com/Shuro">
248
+ <img src="https://avatars.githubusercontent.com/u/944030?s=460&v=4" width="80px;" alt=""/>
249
+ <br /><sub><b>Shuro</b></sub>
250
+ </a>
251
+ </td>
252
+ <td align="center">
253
+ <a href="https://github.com/lorisbergeron">
254
+ <img src="https://avatars.githubusercontent.com/u/51918567?s=460&u=778e4ff284b7d7304450f98421c99f79298371fb&v=4" width="80px;" alt=""/>
255
+ <br /><sub><b>Loris Bergeron</b></sub>
256
+ </a>
257
+ </td>
232
258
</tr>
233
259
</table >
234
260
<!-- markdownlint-enable -->
Original file line number Diff line number Diff line change 6
6
{%- else %}
7
7
server {
8
8
listen 80 default;
9
+ {% if ipv6 -%}
10
+ listen [::]:80;
11
+ {% else -%}
12
+ #listen [::]:80;
13
+ {% endif %}
9
14
server_name default-host.localhost;
10
15
access_log /data/logs/default_host.log combined;
11
16
{% include "_exploits.conf" %}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ARG BUILD_DATE
13
13
14
14
ENV SUPPRESS_NO_CONFIG_WARNING=1
15
15
ENV S6_FIX_ATTRS_HIDDEN=1
16
+ ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=1
16
17
ENV NODE_ENV=production
17
18
18
19
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
@@ -31,18 +32,20 @@ EXPOSE 80
31
32
EXPOSE 81
32
33
EXPOSE 443
33
34
34
- COPY docker/rootfs /
35
35
ADD backend /app
36
36
ADD frontend/dist /app/frontend
37
37
COPY global /app/global
38
38
39
39
WORKDIR /app
40
40
RUN yarn install
41
41
42
+ # add late to limit cache-busting by modifications
43
+ COPY docker/rootfs /
44
+
42
45
# Remove frontend service not required for prod, dev nginx config as well
43
46
RUN rm -rf /etc/services.d/frontend RUN rm -f /etc/nginx/conf.d/dev.conf
44
47
45
48
VOLUME [ "/data" , "/etc/letsencrypt" ]
46
- CMD [ "/init" ]
49
+ ENTRYPOINT [ "/init" ]
47
50
48
51
HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ EXPOSE 80
27
27
EXPOSE 81
28
28
EXPOSE 443
29
29
30
- CMD [ "/init" ]
30
+ ENTRYPOINT [ "/init" ]
31
31
32
- HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health
32
+ HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health
Original file line number Diff line number Diff line change 1
1
*
2
2
! .gitignore
3
+ ! * .sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/with-contenv bash
2
+ # ref: https://github.com/linuxserver/docker-baseimage-alpine/blob/master/root/etc/cont-init.d/01-envfile
3
+
4
+ # in s6, environmental variables are written as text files for s6 to monitor
5
+ # seach through full-path filenames for files ending in "__FILE"
6
+ for FILENAME in $( find /var/run/s6/container_environment/ | grep " __FILE$" ) ; do
7
+ echo " [secret-init] Evaluating ${FILENAME##*/ } ..."
8
+
9
+ # set SECRETFILE to the contents of the full-path textfile
10
+ SECRETFILE=$( cat ${FILENAME} )
11
+ # SECRETFILE=${FILENAME}
12
+ # echo "[secret-init] Set SECRETFILE to ${SECRETFILE}" # DEBUG - rm for prod!
13
+
14
+ # if SECRETFILE exists / is not null
15
+ if [[ -f ${SECRETFILE} ]]; then
16
+ # strip the appended "__FILE" from environmental variable name ...
17
+ STRIPFILE=$( echo ${FILENAME} | sed " s/__FILE//g" )
18
+ # echo "[secret-init] Set STRIPFILE to ${STRIPFILE}" # DEBUG - rm for prod!
19
+
20
+ # ... and set value to contents of secretfile
21
+ # since s6 uses text files, this is effectively "export ..."
22
+ printf $( cat ${SECRETFILE} ) > ${STRIPFILE}
23
+ # echo "[secret-init] Set ${STRIPFILE##*/} to $(cat ${STRIPFILE})" # DEBUG - rm for prod!"
24
+ echo " [secret-init] Success! ${STRIPFILE##*/ } set from ${FILENAME##*/ } "
25
+
26
+ else
27
+ echo " [secret-init] cannot find secret in ${FILENAME} "
28
+ fi
29
+ done
Original file line number Diff line number Diff line change 69
69
real_ip_header X-Real-IP;
70
70
real_ip_recursive on ;
71
71
72
+ # Custom
73
+ include /data/nginx/custom/http_top[.]conf;
74
+
72
75
# Files generated by NPM
73
76
include /etc/nginx/conf.d/*.conf;
74
77
include /data/nginx/default_host/*.conf;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ services:
66
66
- ./data:/data
67
67
- ./letsencrypt:/etc/letsencrypt
68
68
db :
69
- image : ' jc21/mariadb-aria:10.4 '
69
+ image : ' jc21/mariadb-aria:latest '
70
70
environment :
71
71
MYSQL_ROOT_PASSWORD : ' npm'
72
72
MYSQL_DATABASE : ' npm'
Original file line number Diff line number Diff line change 1
1
# Advanced Configuration
2
2
3
+ ## Docker Secrets
4
+
5
+ This image supports the use of Docker secrets to import from file and keep sensitive usernames or passwords from being passed or preserved in plaintext.
6
+
7
+ You can set any environment variable from a file by appending ` __FILE ` (double-underscore FILE) to the environmental variable name.
8
+
9
+ ``` yml
10
+ version : " 3.7"
11
+
12
+ secrets :
13
+ # Secrets are single-line text files where the sole content is the secret
14
+ # Paths in this example assume that secrets are kept in local folder called ".secrets"
15
+ DB_ROOT_PWD :
16
+ file : .secrets/db_root_pwd.txt
17
+ MYSQL_PWD :
18
+ file : .secrets/mysql_pwd.txt
19
+
20
+ services :
21
+ app :
22
+ image : ' jc21/nginx-proxy-manager:latest'
23
+ restart : always
24
+ ports :
25
+ # Public HTTP Port:
26
+ - ' 80:80'
27
+ # Public HTTPS Port:
28
+ - ' 443:443'
29
+ # Admin Web Port:
30
+ - ' 81:81'
31
+ environment :
32
+ # These are the settings to access your db
33
+ DB_MYSQL_HOST : " db"
34
+ DB_MYSQL_PORT : 3306
35
+ DB_MYSQL_USER : " npm"
36
+ # DB_MYSQL_PASSWORD: "npm" # use secret instead
37
+ DB_MYSQL_PASSWORD__FILE : /run/secrets/MYSQL_PWD
38
+ DB_MYSQL_NAME : " npm"
39
+ # If you would rather use Sqlite uncomment this
40
+ # and remove all DB_MYSQL_* lines above
41
+ # DB_SQLITE_FILE: "/data/database.sqlite"
42
+ # Uncomment this if IPv6 is not enabled on your host
43
+ # DISABLE_IPV6: 'true'
44
+ volumes :
45
+ - ./data:/data
46
+ - ./letsencrypt:/etc/letsencrypt
47
+ depends_on :
48
+ - db
49
+ db :
50
+ image : jc21/mariadb-aria
51
+ restart : always
52
+ environment :
53
+ # MYSQL_ROOT_PASSWORD: "npm" # use secret instead
54
+ MYSQL_ROOT_PASSWORD__FILE : /run/secrets/DB_ROOT_PWD
55
+ MYSQL_DATABASE : " npm"
56
+ MYSQL_USER : " npm"
57
+ # MYSQL_PASSWORD: "npm" # use secret instead
58
+ MYSQL_PASSWORD__FILE : /run/secrets/MYSQL_PWD
59
+ volumes :
60
+ - ./data/mysql:/var/lib/mysql
61
+ ` ` `
62
+
63
+
3
64
## Disabling IPv6
4
65
5
66
On some docker hosts IPv6 may not be enabled. In these cases, the following message may be seen in the log:
You can’t perform that action at this time.
0 commit comments