PolyculeConnect
Find a file
Melora Hugues bbea68443f
Some checks failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/deploy Pipeline was successful
ci/woodpecker/push/deploy Pipeline failed
chore: add vscode to gitignore
2023-10-22 14:05:27 +02:00
.woodpecker fix: correct ci definition for woodpecker 2023-10-22 14:05:27 +02:00
polyculeconnect fix page title 2023-10-21 22:16:42 +02:00
.gitignore chore: add vscode to gitignore 2023-10-22 14:05:27 +02:00
docker-compose.yml Fix dockerfile and add compose 2023-10-19 18:33:46 +02:00
Dockerfile Fix dockerfile and add compose 2023-10-19 18:33:46 +02:00
LICENSE chore: add license file 2023-10-21 21:24:35 +02:00
README.md chore: drop drone support 2023-10-22 11:10:23 +02:00

PolyculeConnect

status-badge

Project logo

Description

TODO

Configuration

Here is an example config file

{
    "log": {
        "level": "debug" // debug,info,warn,error
    },
    "server": {
        "port": 5000, // only used in net mode
        "host": "0.0.0.0",  // only used in net mode
        // "sock": "/your/sock.sock" // path to your unix sock if "mode" is set to "unix"
        "mode": "net" // net,unix
    },
    "openconnect": {
        "issuer": "https://polyculeconnect.domain", // hostname of your polyculeconnect server
        "clients": [
            {
                "name": "<name>",
                "id": "<client_id>",
                "secret": "<client_secret>",
                "redirectURIs": [
                    "<redirect_uri>"
                ]
            }
        ],
        "backends": [
            {
                "id": "<unique_id>",
                "name": "<human_readable_name>",
                "local": true,
                "type": "oidc", // must be "oidc" for now
                "config": {
                    "issuer": "https://polyculeconnect.domain", // must be the same as current issuer
                    "clientID": "<client_id>",
                    "clientSecret": "<client_secret>",
                    "redirectURI": "<redirect_uri>"
                }
            },
        ]
    }
}

You can register multiple backend and multiple clients (applications)

Running the server

Running from sources

# clone the directory
git clone https://git.faercol.me/PolyculeConnect/polycule-connect.git

cd polycule-connect

# build the sources
make -C polyculeconnect build

# edit the configuration file
vim config.json

# run the application
./polyculeconnect/build/polyculeconnect -config config.json

Running from docker image

# edit the configuration file
mkdir -p config
vim config/config.json

# run the docker container
docker run -v ./config/:/config -p 5000:5000 -it git.faercol.me/polyculeconnect/polyculeconnect:latest

Or using the example docker compose docker compose up