dropbox
This commit is contained in:
parent
5fb72fc7d2
commit
35d62e92e9
3 changed files with 27 additions and 0 deletions
|
@ -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
17
nginx/dropbox.conf
Normal 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
9
scripts/dropbox
Executable 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
|
Loading…
Reference in a new issue