File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -252,12 +252,13 @@ RUN \
252
252
253
253
# Adjust certbot config.
254
254
sed-patch 's|/data/|/config/|g' /etc/letsencrypt.ini && \
255
- echo "logs-dir = /config/log/letsencrypt" >> /etc/letsencrypt.ini && \
256
- echo "work-dir = /config/letsencrypt-workdir" >> /etc/letsencrypt.ini && \
257
255
258
256
# Change client_body_temp_path.
259
257
sed-patch 's|/tmp/nginx/body|/var/tmp/nginx/body|' /etc/nginx/nginx.conf && \
260
258
259
+ # Fix the pip install command.
260
+ sed-patch 's|pip3 install |pip3 install --user |' /opt/nginx-proxy-manager/internal/certificate.js && \
261
+
261
262
# Redirect `/data' to '/config'.
262
263
ln -s /config /data && \
263
264
@@ -279,6 +280,10 @@ RUN \
279
280
# Make sure letsencrypt certificates are stored in persistent volume.
280
281
ln -s /config/letsencrypt /etc/letsencrypt && \
281
282
283
+ # Make sure some default certbot directories are stored in persistent volume.
284
+ ln -s /config/letsencrypt-workdir /var/lib/letsencrypt && \
285
+ ln -s /config/log/letsencrypt /var/log/letsencrypt && \
286
+
282
287
# Cleanup.
283
288
del-pkg build-dependencies && \
284
289
find /opt/nginx-proxy-manager -name "*.h" -delete && \
Original file line number Diff line number Diff line change 3
3
set -e # Exit immediately if a command exits with a non-zero status.
4
4
set -u # Treat unset variables as an error.
5
5
6
+ export HOME=/config
6
7
export NODE_ENV=production
7
8
export SUPPRESS_NO_CONFIG_WARNING=1
8
9
You can’t perform that action at this time.
0 commit comments