This is the API server for the link shortener on abbr.ninja.
Source code for:
Refer to requirements.txt.
podman was used to run and build the container but this should also work
for docker.
- Populate
config.tomlwith your desired settings. - Clone from the API doc repository and build the document.
- Copy the
builddirectory from the API doc directory to this directory where the path should be./doc/build. - Run
podman build -t <INSERT_CONTAINER_NAME> .in the root directory of the repository containing theDockerfile. - Start your container by
podman run --network <INSERT_CONTAINER_NETWORK_NAME> -p <INSERT_HOST_PORT>:8081 -d -t <INSERT_CONTAINER_NAME>
You would also need a MariaDB server running and a database named uri_shortener created.
- A nginx reverse proxy pointed to this server is recommended since this server does not support configuration for TLS/SSL and for higher performance. How to Configure a Nginx HTTPs Reverse Proxy on Ubuntu Bionic - Scaleway
Feel free to donate if you find this helpful!
- BTC:
bc1qww8sktvenl044juafgvt068yah9dxuwrhht4kq16G7WnKzNdYc48NtEeiVuLNeaLcoXBw1K4
- ETH:
0x5d67690768F0Fc4780c578393Ca567e5bCb38378