diff --git a/README.md b/README.md index 020edb2..1dfabe7 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Only the clients need a connection to this service on configured port. - provide `.deb` package (WIP) - migrate from `dataset` to `sqlalchemy` (WIP) - migrate from `fastapi` to `flask` -- Support http mode for using external https proxy +- Support http mode for using external https proxy (disable uvicorn ssl for using behind proxy) ## Endpoints @@ -214,6 +214,23 @@ wget -O $FILENAME https://git.collinwebdesigns.de/oscar.krause/fastapi-dls/-/pac dpkg -i $FILENAME apt-get install -f --fix-missing ``` +with `systemctl start fastapi-dls.service`. + +## Let's Encrypt Certificate + +If you're using installation via docker, you can use `traefik`. Please refer to their documentation. + +Note that port 80 must be accessible, and you have to install `socat` if you're using `standalone` mode. + +```shell +acme.sh --issue -d example.com \ + --cert-file /etc/fastapi-dls/webserver.donotuse.crt \ + --key-file /etc/fastapi-dls/webserver.key \ + --fullchain-file /etc/fastapi-dls/webserver.crt \ + --reloadcmd "systemctl restart fastapi-dls.service" +``` + +After first success you have to replace `--issue` with `--renew`. # Configuration