Sign inSign up

fabianmp/hsds-viewer

By fabianmp

•Updated over 4 years ago

Image
0

2.2K

fabianmp/hsds-viewer repository overview

⁠hsds-viewer

Simple viewer for contents of an HSDS server.

⁠Architecture

HSDS-Viewer uses a Python web service to connect to HSDS and a React frontend to display the content. Currently the backend web service uses the HSDS configuration of the host system (environment variables or .hscfg) for the HSDS connection. Optionally HSDS-Viewer itself can use authentication against an external OIDC provider.

⁠Configuration

Set the following environment variables to configure HSDS-Viewer. OIDC authentication is activated if the corresponding settings are set.

Environment VariableDefault ValueDescription
HS_ENDPOINTNoneHSDS server endpoint
HS_USERNAMENoneHSDS user
HS_PASSWORDNoneHSDS password
SECRET_KEYNoneSecret key used to sign sessions (random if not set but OIDC is enabled)
OIDC_ENDPOINTNoneOIDC provider endpoint (URI to .well-known configuration)
OIDC_CLIENT_IDNoneOIDC client name
OIDC_CLIENT_SECRETNoneOIDC client secret
OIDC_ROLES_CLAIMrolesClaim in access token that holds user roles (list of strings)
FEATURE_NODE_INFO_ENABLEDnot setActivate HSDS node info page (requires direct access to nodes, only visible to admins)
USE_PROXY_FIXFalseActivate ProxyFix middleware to set external server name correctly behind reverse proxy
ENABLE_CORSFalseUse CORS middleware

Tag summary

Content type

Image

Digest

Size

131.3 MB

Last updated

over 4 years ago

docker pull fabianmp/hsds-viewer