This commit is contained in:
tavo-wasd 2024-08-25 11:55:37 -06:00
parent 5fb72fc7d2
commit 35d62e92e9
3 changed files with 27 additions and 0 deletions

View file

@ -30,6 +30,7 @@ clear &
#xrandr --output DVI-D-0 --right-of HDMI-0
hsetroot -cover /home/tavo/Pictures/Backgrounds/default.jpg &
emacs --daemon &
dropbox &
sleep 0.2
while true; do

17
nginx/dropbox.conf Normal file
View file

@ -0,0 +1,17 @@
# apt install apache2-utils
# Note: Omit -c of .htpasswd already exists
# sudo htpasswd -c /etc/apache2/.htpasswd user
server {
server_name cloud.tavo.one;
location / {
proxy_pass http://localhost:5000/;
# proxy_max_temp_file_size 0;
# proxy_buffering off;
auth_basic "Dropbox";
auth_basic_user_file /etc/apache2/.htpasswd;
}
}

9
scripts/dropbox Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
DROPFOLDER="/home/tavo/Public/dropbox"
PYTHON="python"
PORT=5000
if [ -d "${DROPFOLDER}" ] ; then
(cd "${DROPFOLDER}" && "${PYTHON}" -m http.server "${PORT}")
fi