Skip to content

njhurst/server-bottle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhotoBackup Python server

The Python3 implementation of PhotoBackup server, made with bottle. It follows the official API.

Installation

Install through PyPI:

pip install photobackup_bottle

Then run the installer, which asks for the directory to save your pictures to and the server password:

photobackup init

The script looks for the directory to be writable by the usual www-data user. It fails gracefully if it is not, just warning you to make it work properly. This step creates a photobackup_settings.py file in the current directory, containing:

  • MediaRoot, the directory where the pictures are written in ;
  • Password, the SHA-512 hashed password ;
  • Port, the port (default is 8420).

Usage

Launch the server with:

photobackup run

By default, it runs on host 0.0.0.0, port 8420 and reloads automatically.

Production

To put in production, use something like gunicorn behind your webserver.

About

The Python PhotoBackup server implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%