forked from cbhushan/Static-HTML-file-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
executable file
·46 lines (40 loc) · 1.35 KB
/
config.py
File metadata and controls
executable file
·46 lines (40 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# CONFIGURATION FILE of Static HTML file browser for Dropbox
DROPBOX_BASE_URL = "https://example.com/"
# this is a link to the icons directory
DROPBOX_LINK_TO_ICONS = "{base}/icons".format(base=DROPBOX_BASE_URL)
# here you can change the output of the program
SHOW_SERVER_INFO = True # default: True
HIDE_HIDDEN_ENTRIES = True # default: True
HIDE_INDEX_HTML_FILES = True # default: True
HIDE_ICONS_FOLDER = True # default: True
MONOSPACED_FONTS = True # default: True
OVERWRITE_ICON_FOLDER = True # default: True
TARGET_ICON_FOLDER_NAME = '_icons'
SERVER_INFO = "Apache/2.4.18 at dropbox.com Port 80"
# icons folder in your dropbox
DROPBOX_ICON_FOLDER = "/home/jabba/Dropbox/assets/static_html_icons"
# if you want to add more icons, you can do it here, but don't forget to
# add the gif file to the icons directory too.
extensions = {
r'.txt': 'text.gif',
r'.png': 'image2.gif',
r'.jpg': 'image2.gif',
r'.jpeg': 'image2.gif',
r'.bmp': 'image2.gif',
r'.gif': 'image2.gif',
r'.doc': 'doc.gif',
r'.htm': 'link.gif',
r'.html': 'link.gif',
r'.mp3': 'sound2.gif',
r'.mp4': 'sound2.gif',
r'.flac': 'sound2.gif',
r'.wav': 'sound2.gif',
r'.wma': 'sound2.gif',
r'.midi': 'sound2.gif',
r'.py': 'python.gif',
r'.tex': 'tex.gif',
r'.tar': 'tar.gif'
}
# used internally; do not modify
icon_dir = ''
ignore_exts = []