Fixed deprecated nginx option
This commit is contained in:
parent
989e1dd466
commit
b6401bea8b
2 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,7 @@ mkdir -p ${ROOTFS_DIR}/home/octoprint/.octoprint/
|
|||
install -m 600 files/config.yaml ${ROOTFS_DIR}/home/octoprint/.octoprint/config.yaml
|
||||
|
||||
install -m 644 files/nginx.conf ${ROOTFS_DIR}/etc/nginx/nginx.conf
|
||||
echo -e "listen 443;" > ${ROOTFS_DIR}/etc/nginx/listen.conf
|
||||
echo -e "listen 443 ssl;" > ${ROOTFS_DIR}/etc/nginx/listen.conf
|
||||
touch ${ROOTFS_DIR}/etc/nginx/auth.conf
|
||||
|
||||
mkdir -p ${ROOTFS_DIR}/usr/local/bin
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
server {
|
||||
include /etc/nginx/listen.conf;
|
||||
ssl on;
|
||||
ssl_certificate /etc/ssl/certs/nginx-octoprint.crt;
|
||||
ssl_certificate_key /etc/ssl/private/nginx-octoprint.key;
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
|
||||
|
|
Loading…
Reference in a new issue