darkmode

command module
v0.0.0-...-7c74c72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 19 Imported by: 0

README

Darkmode

API

GET https://darkmode.datasektionen.se/ - returns the current darkmode status as either true or false with the Content-Type header set to application/json.

Env variables

Name Description
PORT The port to listen for connections on
WEBHOOKS A list of urls separated by commas. A GET request will be sent to each of these with the header X-Darkmode-Event: updated when the darkmode status (might have) changed
OIDC_PROVIDOR The url to oidc provider
OIDC_CLIENT_ID Client id at oidc provide
OIDC_CLIENT_SECRET Secret used for connecting to oidc
OIDC_REDIRECT_URL Url to redirecet back to after successful login
DATABASE_URL Connection settings for connecting to database. Format: postgres://username>:pasword@host:port/database

Other systems

Darkmode depends on sso and hive. The system name in Hive is darkmode and it checks the permission switch.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL