diff options
author | B Stack <bgstack15@gmail.com> | 2020-12-18 19:11:38 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-12-18 19:25:23 -0500 |
commit | 52ac4782f7acf7994d9d9e4136fc05099d252f59 (patch) | |
tree | b682e3f2c32f731ce34bcc4eddae9780781a99e5 /config | |
parent | improve instructions for installing short_url (diff) | |
download | hex-zero-52ac4782f7acf7994d9d9e4136fc05099d252f59.tar.gz hex-zero-52ac4782f7acf7994d9d9e4136fc05099d252f59.tar.bz2 hex-zero-52ac4782f7acf7994d9d9e4136fc05099d252f59.zip |
add drag-and-drop /upload/ route
Diffstat (limited to 'config')
-rw-r--r-- | config/Makefile | 9 | ||||
-rw-r--r-- | config/hex-zero.conf.example | 8 |
2 files changed, 10 insertions, 7 deletions
diff --git a/config/Makefile b/config/Makefile index b99dac7..686fb0a 100644 --- a/config/Makefile +++ b/config/Makefile @@ -16,7 +16,7 @@ APPNAME = hex-zero APPNAME_ = hex_zero -APPVERSION = 0.0.1 +APPVERSION = 0.0.2 SRCDIR = $(CURDIR)/..# because Makefile is in config/ inside this repo prefix = /usr SYSCONFDIR = $(DESTDIR)/etc @@ -82,8 +82,8 @@ deplist_opts: install_files: ${installbin} -m0755 -d ${LOGDIR} ${APPDIR}/up ${APPDIR}/static ${DOCDIR} ${DEFAULTDIR} - ${installbin} -m0644 -t ${APPDIR} ${SRCDIR}/front.html.in - ${installbin} -m0644 -t ${APPDIR}/static ${SRCDIR}/static/styles.css + ${installbin} -m0644 -t ${APPDIR} ${SRCDIR}/*.html.in + ${installbin} -m0644 -t ${APPDIR}/static ${SRCDIR}/static/* ${installbin} -m0644 ${SRCDIR}/config/${APPNAME}.conf.example ${APPDIR}/${APPNAME}.conf ${installbin} -m0755 -t ${APPDIR} ${SRCDIR}/${APPNAME_}.py ${SRCDIR}/${APPNAME}.wsgi \ ${SRCDIR}/check-for-short_url.sh @@ -121,7 +121,8 @@ uninstall: @${echobin} SRCDIR=${SRCDIR} ${rmbin} -f ${APPDIR}/${APPNAME}.conf ${APPDIR}/${APPNAME_}.py ${APPDIR}/${APPNAME}.wsgi \ ${APPDIR}/check-for-short_url.sh \ - ${APPDIR}/front.html.in ${DOCDIR}/* ${DEFAULTDIR}/${APPNAME} \ + ${APPDIR}/front.html.in ${APPDIR}/dd-upload.html.in \ + ${DOCDIR}/* ${DEFAULTDIR}/${APPNAME} \ ${APPDIR}/migrations/versions/* ${APPDIR}/migrations/* \ ${APPDIR}/static/* \ 1>/dev/null 2>&1 || : diff --git a/config/hex-zero.conf.example b/config/hex-zero.conf.example index 3b62410..9b5d165 100644 --- a/config/hex-zero.conf.example +++ b/config/hex-zero.conf.example @@ -26,11 +26,13 @@ FHOST_MIME_BLACKLIST = [ ] # template for front page of app -FHOST_FRONTPAGE = "/var/www/hex-zero/front.html.in" +FRONTPAGE = "/var/www/hex-zero/front.html.in" +DRAG_AND_DROP_PAGE = "/var/www/hex-zero/dd-upload.html.in" -ADMIN_EMAIL = "root@d2-03a" +ADMIN_EMAIL = "webmaster@example.com" # with this, as well as use this for printing the base url of the app -APP_URL = "http://d2-03a/hex-zero" +APP_URL = "https://upload.example.com/hex-zero" +APP_PATH = "/hex-zero" # use the forwarded IP address header instead of the requester IP address USE_HTTP_X_FORWARDED_FOR = True # If you want to expose this app directly on 0.0.0.0 that is dangerous, but up to you. |