A very simple selfhostable pub repository for Dart and Flutter with support for publishing.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Alexander "PapaTutuWawa 0a65ba89b3 Fix typo 3 months ago
pkgs Maybe make the flake work 3 months ago
pub_repo feat: Make the title of the web view configurable 4 months ago
.gitignore feat: Add Nix Flake 3 months ago
LICENSE Initial commit 4 months ago
README.md feat: Make the title of the web view configurable 4 months ago
flake.lock feat: Add Nix Flake 3 months ago
flake.nix Fix typo 3 months ago
main.py Initial commit 4 months ago
setup.py Maybe make the flake work 3 months ago

README.md

pub_repo

A simple selfhostable pub repository with support for publishing.

Usage

Install using setup.py install and run with any ASGI host, like for example daphne: daphne -p 8000 pub_repo.repo_asgi:app.

Configuration

pub_repo reads its configuration either from ./pub_repo.yaml or from the path specified by the PUB_REPO_CONFIG environment variable.

# Path to where packages are stored
package_dir: /var/lib/pubrepo/packages

# Path to where uploads are tempoarily stored
upload_dir: ./uploads

# URL on which the service can be reached
outside_url: http://127.0.0.1:8000

# Whether to check authorization for publishing and finalizing.
# Note that this means that EVERYONE CAN PUBLISH on ANY PACKAGE and
# UPLOAD ANY PACKAGE. Use with care.
check_authorization: false

# The title of the web view
web_title: Some Repository

# Authorization tokens that are allowed to publish. These tokens must be URL safe and not
# contain slashes.
tokens:
  abc123:
    # List of packages that this token can publish on
    - package_a
  some_other_token:
    - package_b
    - package_a

License

See LICENSE.