Deployment Guide
You can deploy the AAProp
API in two distinct ways:
- Self-Hosted Deployment using the binaries provided in the releases section.
- Docker-based Deployment using the Docker image provided in the Docker Hub or the GitHub Container Registry.
Self-Hosted Deployment
Prerequisites
- One of the following architectures:
x86_64
aarch64
i686
- A Linux-based operating system, preferably:
- Ubuntu 20.04 LTS or later
- Fedora 34 or later
- CentOS 8 or later
- Debian 11 or later
- At least of 128 MB of RAM.
- The
AAProp
binary for your architecture. - A reverse proxy like
nginx
orCaddy
to handle incoming requests, if you want to expose the API to the internet.
Installation
-
Download the
AAProp
binary for your architecture from the releases section.wget "https://github.com/AliSajid/aaprop/releases/download/v2.0.0/aaprop-{`arch`}-unknown-linux-gnu" wget "https://github.com/AliSajid/aaprop/releases/download/v2.0.0/aaprop-{`arch`}-unknown-linux-gnu.asc" wget "https://github.com/AliSajid/aaprop/releases/download/v2.0.0/SHA256SUMS.txt" wget "https://github.com/AliSajid/aaprop/releases/download/v2.0.0/SHA256SUMS.txt.asc"
-
Verify the integrity of the binary using the provided SHA256 checksum.
sha256sum -c SHA256SUMS.txt 2>&1 | grep OK
-
Verify the binary's authenticity by checking the gpg signature.
gpg --verify SHA256SUMS.txt.asc gpg --verify aaprop-$(arch)-unknown-linux-gnu.asc
-
Place the binary in a directory of your choice in the PATH.
sudo mv aaprop-$(arch)-unknown-linux-gnu /usr/local/bin/aaprop
-
Start the
AAProp
API.aaprop
Docker Deployment
Prerequisites
- Docker installed on your system.
- A reverse proxy like
nginx
orCaddy
to handle incoming requests, if you want to expose the API to the internet. - The Docker image for the
AAProp
API.
Installation
-
Pull the Docker image from the Docker Hub or the GitHub Container Registry.
docker pull imamiland/aaprop:latest
-
Run the Docker container.
docker run -d -p 8080:8080 imamiland/aaprop:latest
-
Verify that the container is running.
docker ps
-
Access the API at
http://localhost:8080
. -
If you want to expose the API to the internet, configure your reverse proxy to forward requests to the container's port.
server { listen 80; server_name example.com; location / { proxy_pass http://localhost:8080; } }
sudo systemctl restart nginx