Did you know that you can host your own outbag instance?
  • TypeScript 85.8%
  • JavaScript 14.1%
Find a file
jusax23 b4e973d73c
All checks were successful
Outbag Tests / test (push) Successful in 34s
obfuscate fix, ota login fix
2024-08-21 18:51:29 +02:00
.gitea/workflows test action 2024-02-25 14:43:50 +01:00
.woodpecker better inviatations + clean up 2023-03-28 19:23:03 +02:00
docs permission update 2024-03-11 13:52:50 +01:00
src obfuscate fix, ota login fix 2024-08-21 18:51:29 +02:00
tests obfuscate fix, ota login fix 2024-08-21 18:51:29 +02:00
.gitignore remote passing 2023-03-20 16:26:06 +01:00
genSelfSignedCert.sh tests 2023-03-10 12:44:23 +01:00
package-lock.json bug fix 2024-02-22 21:26:13 +01:00
package.json automatic cat order 2023-03-29 21:23:31 +02:00
readme.md missing point 2024-03-02 17:34:35 +01:00
test.juml small fixes 2024-02-25 13:40:35 +01:00
tsconfig.json server framework 2023-02-28 14:44:10 +01:00

Outbag Server

Did you know that you can host your own outbag instance?

This repo contains the official outbag server.

Setup

*Keep in mind that you need a valid SSL certificate for your domain

Using docker

Find docker instructions in the docker repo

Manually

Requirements

  • git
  • nodejs & npm
  • a MySQL database, we recommend mariadb

Setting up MariaDB

Set up the Maria Database. Create a new database and a new user and grand the user all privileges to this database. For more Instructions see: Setup MariaDB

Install

  1. Clone this git repo
    git clone https://codeberg.org/outbag/server/ outbag-server
    cd outbag-server
    
  2. Download & install the dependencies
    npm install
    

Setup

The Setup can either be done with environment variables or a config file.

See: Configure Outbag

Choosing environment variables: Set all needed environment variables from the Configure Outbag Page.

Choosing a config file: Run the Server with: -c path/to/config.juml arguments. If the config does not exist, a setup cli tool will be triggered. Enter all asked Information and double-check your config file. The setup tool can be triggered with -s at any time.

Port Forwarding & .well-known

The Outback server requires at least one forwarded TCP port. The default port is 443 or 7223.

Each Server can be identified by a server tag.

  • Main-Tag: example.com
  • Secondary-Tag: example.com:port

The app will find the server by fetching the path: /.well-known/outbag/server on example.com or example.com:port. When the user enters no port and the first one is not available the second one will be tried with the port 7223. The /.well-known/outbag/server will be automatically hosted by the server.

If your server should be accessible with the Main-Tag and is not running on port 443 or 7223 and on the path / you need to create/proxy the Well-known File at example.com or example.com:7223.

Hosting the UI

As of writing, there is no official method of having the backend host the UI yet (we are working on it).

For the time being, just follow the manual guide.

API

A documentation can be found here.