Clemens Lang d97ecbb8a0 deploy: Reduce the number of kept old images
These images have started to become very large, mostly due to the
presence of large rust runtime libraries. Reduce the number of older
copies that we keep. So far, we have never needed to do a rollback, so
reducing the number of kept copies a bit seems like a safe choice.
2024-02-29 14:49:16 +01:00
2020-11-18 01:09:46 +01:00
2020-11-18 01:16:45 +01:00
2024-01-15 22:42:39 +01:00
2022-11-30 01:18:16 +01:00
2020-11-18 01:16:45 +01:00

smtpselfservice.macports.org

This Python web application allows MacPorts Developers to set an SMTP password for the MacPorts mailserver.

It is written in Python >= 3.8, and uses the Flask web application framework.

Development

To install a development copy of this, you will need poetry, which can be installed from MacPorts. Once you have poetry installed, run poetry install to download and install the required dependencies. Poetry will by default do that in a virtualenv. Note that you may want to run poetry config virtualenvs.in-project true to have the virtualenv created in the project directory, rather than in some cache directory.

Start the server using

FLASK_APP=smtpselfservice FLASK_DEBUG=1 poetry run flask run

The application will then be running on localhost:5000. Note that for the application to work correctly, you will have to send a valid GitHub OAuth2 token with the email:read scope in the X-Forwarded-Access-Token HTTP header. This can, for example, be achieved by forwarding your local installation to the remote server running smtpselfservice.macports.org using

ssh -v -N -R:$remoteport:127.0.0.1:$localport $server

You can set the database URI using the DATABASE_URI environment variable. See the documentation on libpq connection strings for the format.

Description
No description provided
Readme BSD-2-Clause 140 KiB
Languages
CSS 88%
Python 4.8%
HTML 4.2%
Shell 2.3%
Dockerfile 0.7%