Compare commits

..

2 commits

Author SHA1 Message Date
a55df5400f
Bug fixes, updated TODO
Nginx will now no longer fail during first-time or if the user doesn't
provide credentials during first-time
2020-09-03 16:55:33 -06:00
abe1cf4d99
Surf now deletes cookies on startup
This is so that it logs in everytime the Pi starts up, which prevents
the annoying issue where when you change the autologin user it doesn't
take effect for like 2 days
2020-09-03 16:53:47 -06:00
4 changed files with 7 additions and 1 deletions

View file

@ -4,8 +4,10 @@
- Add network configuration (replace nmtui) - Add network configuration (replace nmtui)
- Add hostname configuration (replace nmtui) - Add hostname configuration (replace nmtui)
- Add Enclosure plugin to suggested - Add Enclosure plugin to suggested
- Bring back cancel buttons
## Misc ## Misc
- Cleanup
- More security - More security
- Wiki - Wiki

View file

@ -7,6 +7,7 @@ install -m 600 files/config.yaml ${ROOTFS_DIR}/home/octoprint/.octoprint/config.
install -m 644 files/nginx.conf ${ROOTFS_DIR}/etc/nginx/nginx.conf 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;" > ${ROOTFS_DIR}/etc/nginx/listen.conf
touch ${ROOTFS_DIR}/etc/nginx/auth.conf
mkdir -p ${ROOTFS_DIR}/usr/local/bin mkdir -p ${ROOTFS_DIR}/usr/local/bin
install -m 755 files/restart-octoprint ${ROOTFS_DIR}/usr/local/bin/restart-octoprint install -m 755 files/restart-octoprint ${ROOTFS_DIR}/usr/local/bin/restart-octoprint

View file

@ -1,5 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Deletes cookies
rm ~/.surf/cookies.txt
# Grabs the port (and IP) out of the nginx config # Grabs the port (and IP) out of the nginx config
LISTEN=$(awk '/listen/{gsub(";",""); print $2}' /etc/nginx/listen.conf) LISTEN=$(awk '/listen/{gsub(";",""); print $2}' /etc/nginx/listen.conf)