1
0
Fork 0
The code for my personal media sharing site https://share.skehsucks.xyz
This repository has been archived on 2019-02-15. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Derek Schmidt e4b0f4cff8
Added new user permissions into db
can_refer: Can create referal codes
can_upload: Can upload new files
can_manage: Can perform administrative duties

All false by default except for user 'admin'
2018-09-08 10:55:46 -07:00
migrations Added new user permissions into db 2018-09-08 10:55:46 -07:00
static Fix various css bugs 2018-07-26 13:45:19 -07:00
templates Implement basic ratelimiting 2018-07-26 14:30:23 -07:00
.gitignore Use config.json instead of settings.cfg 2018-07-26 12:17:49 -07:00
models.py Added new user permissions into db 2018-09-08 10:55:46 -07:00
notpiracyiswear.py Fix "SERVE_DIR" config 2018-08-24 13:22:44 -07:00
Pipfile Add eventlet as a dependency 2018-08-24 13:24:26 -07:00
Pipfile.lock Add eventlet as a dependency 2018-08-24 13:24:26 -07:00
README.md Add eventlet as a dependency 2018-08-24 13:24:26 -07:00
setup.py Added new user permissions into db 2018-09-08 10:55:46 -07:00

Share

because ftp was too easy

Quickstart

It's easy peasy my dude

  1. Install pip and pipenv

    apt install pip3
    pip3 install pipenv
    
  2. Get dependencies

    pipenv Install
    
  3. Initialize

    pipenv run python setup.py serve_dir [--secret SECRET_KEY] [--db CONNECTION_STRING]
    
  4. Run it

    • For testing

      pipenv shell
      FLASK_APP="notpiracyiswear.py" flask run
      
    • For production

      pipenv run gunicorn notpiracyiswear:app -k 'eventlet'