Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

webdomains

Manage your Web domains served by NGINX.

Installation

Requirements

On a Debian-based host, you will need an already configured and running NGINX server. You may also install the following packages to satisfy the Python dependencies:

  • python3-click
  • python3-jinja2

To generate the SSL/TLS certificates for the domains, you will also have to install and configure dehydrated. It is recommended to use a recent version - i.e. from buster-backports. To serve the ACME challenge, the default NGINX configuration of a domain is looking for /etc/nginx/snippets/acme-challenge.conf - which can just contain:

location /.well-known/acme-challenge {
    default_type "text/plain";
    alias        /var/lib/dehydrated/acme-challenges;
}

Configuration

You can provide your own server.conf template which is used to generate the NGINX configuration of a new domain. webdomains will look for a file with this name in /etc/webdomains/templates at first. If it does not exist, the default template is used.

Development

To set up a development environment, all you need to have to install is a Python 3 interpreter, Git and Make. Then, run the following:

git clone https://framagit.org/cliss21/webdomains.git
cd webdomains/

# create and active a virtual environment
python3 -m venv venv/
source venv/bin/activate

# install the package with test requirements
pip install --editable ".[dev]"

You can now run the following commands:

  • make lint: check the code syntax
  • make test: run the tests
  • make coverage: report the code coverage

License

webdomains is mainly developed by Cliss XXI and licensed under the GPLv3+. Any contribution is welcome!

Metadata

Release files for webdomains 1.0.0b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webdomains 1.0.0b3
File Size Uploaded
webdomains-1.0.0b3.tar.gz 23.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for webdomains 1.0.0b3
File Interpreter ABI Platform
webdomains-1.0.0b3-py3-none-any.whl Python 3 none any Details

Total release size: 47.7 kB

Release files / webdomains-1.0.0b3.tar.gz

Download URL webdomains-1.0.0b3.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3402e459e4f7eba070789c5d76e5d4bda212ea30f29b187abd088cf51007b925
BLAKE2b-256 checksum
How to use checksums
d391a95d380e84e9b21737ac514a1716bee8f524547c02d970cc55b4186cf1fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release files / webdomains-1.0.0b3-py3-none-any.whl

Download URL webdomains-1.0.0b3-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c218c5dfccb5deda3d752fae90381248e04f33ed17e4f0c0e898305b77b0cef
BLAKE2b-256 checksum
How to use checksums
e3f369c20a9e9deeedf941edfc418577bc82ccf0463dad7f0d4f89f4f379d38d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.0.0b3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page