Last active
July 4, 2021 18:23
-
-
Save FunDeckHermit/97f7059db8df21f29f959c1f1fd7102a to your computer and use it in GitHub Desktop.
Navidrome header authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
server: | |
image: gitea/gitea:latest | |
environment: | |
- USER_UID=1000 | |
- USER_GID=1000 | |
restart: always | |
volumes: | |
- ./data:/data | |
- /etc/timezone:/etc/timezone:ro | |
- /etc/localtime:/etc/localtime:ro | |
ports: | |
- "3000:3000" | |
- "222:22" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name music.example.com; | |
client_max_body_size 0; | |
client_body_temp_path /srv/tmp; | |
location / { | |
auth_request_set $pusername Kevin; | |
#echo to test headers | |
#proxy_pass http://127.0.0.1:8888; | |
proxy_pass http://127.0.0.1:4533; | |
proxy_set_header x-vouch-my-magic-header $pusername; | |
proxy_pass_request_headers on; | |
} | |
listen 80; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vouch: | |
logLevel: info | |
testing: false | |
#loglevel: debug | |
#testing: true | |
listen: 0.0.0.0 | |
port: 9090 | |
allowAllUsers: true | |
publicAccess: false | |
jwt: | |
secret: {SECRET} | |
issuer: Vouch | |
# number of minutes until jwt expires | |
maxAge: 240 | |
# compress the jwt | |
compress: true | |
cookie: | |
# name of cookie to store the jwt | |
name: KevinCookieDomain | |
domain: example.com | |
secure: true | |
httpOnly: true | |
# Set cookie maxAge to 0 to delete the cookie every time the browser is closed. | |
maxAge: 240 | |
session: | |
# name of session variable stored locally | |
name: VouchSessionDomain | |
key: {KEY} | |
headers: | |
jwt: X-Vouch-Token | |
querystring: access_token | |
redirect: X-Vouch-Requested-URI | |
claims: | |
- groups | |
- given_name | |
#db: | |
# file: data/vouch_bolt.db | |
test_url: http://example.com | |
# Gitea = auth.example.com | |
oauth: | |
provider: oidc | |
client_id: {secret} | |
client_secret: {secret} | |
auth_url: https://auth.example.com/login/oauth/authorize | |
token_url: https://auth.example.com/login/oauth/access_token | |
user_info_url: https://auth.example.com/login/oauth/userinfo | |
scopes: | |
- openid | |
- profile | |
callback_url: https://vouch.example.com/auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.0' | |
services: | |
vouch1: | |
container_name: vouch_domain | |
image: voucher/vouch-proxy | |
ports: | |
- 9090:9090 | |
volumes: | |
- './config1:/config' | |
- './data1:/data' | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment