feat: add paperless oidc conf
This commit is contained in:
parent
fa8abe1637
commit
1d03ae408c
3 changed files with 26 additions and 0 deletions
|
|
@ -48,3 +48,5 @@ services:
|
||||||
PAPERLESS_ADMIN_USER: ${PAPERLESS_ADMIN_USER:-admin}
|
PAPERLESS_ADMIN_USER: ${PAPERLESS_ADMIN_USER:-admin}
|
||||||
PAPERLESS_ADMIN_MAIL: ${PAPERLESS_ADMIN_MAIL:-admin@fukurokuju.dev}
|
PAPERLESS_ADMIN_MAIL: ${PAPERLESS_ADMIN_MAIL:-admin@fukurokuju.dev}
|
||||||
PAPERLESS_ADMIN_PASSWORD: ${PAPERLESS_ADMIN_PASSWORD}
|
PAPERLESS_ADMIN_PASSWORD: ${PAPERLESS_ADMIN_PASSWORD}
|
||||||
|
PAPERLESS_APPS: allauth.socialaccount.providers.openid_connect
|
||||||
|
PAPERLESS_SOCIALACCOUNT_PROVIDERS: ${PAPERLESS_SOCIALACCOUNT_PROVIDERS}
|
||||||
|
|
|
||||||
|
|
@ -102,3 +102,17 @@ module "portainer" {
|
||||||
app_url = "https://containers.fukurokuju.dev/"
|
app_url = "https://containers.fukurokuju.dev/"
|
||||||
sub_mode = "hashed_user_id"
|
sub_mode = "hashed_user_id"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module "paperless" {
|
||||||
|
source = "../modules/authentik-oidc"
|
||||||
|
app_name = "Paperless"
|
||||||
|
app_slug = "paperless"
|
||||||
|
client_id = var.paperless_client_id
|
||||||
|
client_secret = var.paperless_client_secret
|
||||||
|
app_access_group_id = ""
|
||||||
|
redirect_uris = ["https://paperless.roboces.dev/accounts/oidc/authentik/login/callback/"]
|
||||||
|
app_icon = "https://paperless.roboces.dev/favicon.ico"
|
||||||
|
app_description = "Document manager"
|
||||||
|
app_publisher = "Paperless"
|
||||||
|
app_url = "https://paperless.roboces.dev"
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,3 +47,13 @@ variable "portainer_client_secret" {
|
||||||
description = "Client secret"
|
description = "Client secret"
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "paperless_client_id" {
|
||||||
|
description = "Paperless client ID"
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "paperless_client_secret" {
|
||||||
|
description = "Paperless client secret"
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue