2.4 KiB
Installation
Libredesk is a single binary application that requires postgres and redis to run. You can install it using the binary or docker.
Binary
- Download the latest release and extract the libredesk binary.
./libredesk --installto install the tables in the Postgres DB (⩾ 13) and set the System user password.- Run
./libredeskand visithttp://localhost:9000and login with the emailSystemand the password you set during installation.
!!! Tip
To set the System user password during installation, set the environment variables:
LIBREDESK_SYSTEM_USER_PASSWORD=xxxxxxxxxxx ./libredesk --install
Docker
The latest image is available on DockerHub at libredesk/libredesk:latest
The recommended method is to download the docker-compose.yml file, customize it for your environment and then to simply run docker compose up -d.
# Download the compose file and the sample config file in the current directory.
curl -LO https://github.com/abhinavxd/libredesk/raw/main/docker-compose.yml
curl -LO https://github.com/abhinavxd/libredesk/raw/main/config.sample.toml
# Copy the config.sample.toml to config.toml and edit it as needed.
cp config.sample.toml config.toml
# Run the services in the background.
docker compose up -d
# Setting System user password.
docker exec -it libredesk_app ./libredesk --set-system-user-password
Go to http://localhost:9000 and login with the email System and the password you set using the --set-system-user-password command.
Compiling from source
To compile the latest unreleased version (main branch):
- Make sure
go,nodejs, andpnpmare installed on your system. git clone git@github.com:abhinavxd/libredesk.gitcd libredesk && make. This will generate thelibredeskbinary.
Nginx
Libredesk uses websockets for real-time updates. If you are using Nginx, you need to add the following (or similar) configuration to your Nginx configuration file.
client_max_body_size 100M;
location / {
proxy_pass http://localhost:9000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}