Merge branch 'prod'

This commit is contained in:
Jeffrey Paul 2020-03-10 19:22:09 -07:00
commit 6ffaf09982
4 changed files with 42 additions and 3 deletions

View File

@ -107,4 +107,5 @@ COPY . /var/app
VOLUME /data
CMD ['pipenv', 'run', 'bin/tvidd']
ENV PYTHONPATH /var/app
CMD pipenv run python ./bin/tvidd

14
LICENSE Normal file
View File

@ -0,0 +1,14 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

View File

@ -9,9 +9,30 @@ Log in to the admin panel and enter the URL for that TV ID, and within 60
seconds, that display will bounce to that URL, or any other time it turns
on.
You can reconfigure the target URL at any time, and the next time that
display reboots or reloads (you should be rebooting your displays daily) it
will get redirected to the new target.
# configuration knobs
## environment variables
* set `ADMIN_PSK` to the admin password (for `/admin` url)
## state storage
* writes sqlite database into `/data`, mount that volume somewhere
# todo
* make display id animate: https://codepen.io/stezu/pen/cmLrI
* fix CSRF
* fix FIXMEs
* fix logging output
* put git short id into version string
# license
WTFPL
# author

View File

@ -1,8 +1,11 @@
from setuptools import setup, find_packages
# for some reason that console_scripts entrypoint fails
# and i have no idea why so there is a bin in bin/
setup(
name='tvid',
version='0.0.1',
version='1.0.0',
packages=find_packages(),
license='WTFPL',
long_description=open('README.md').read(),