Compare commits
9 commits
c54c629b5c
...
71306a2cd1
Author | SHA1 | Date | |
---|---|---|---|
|
71306a2cd1 | ||
|
1d43361c72 | ||
|
3a9f812be1 | ||
|
3722602203 | ||
|
bfbaf515c2 | ||
|
1d495e1798 | ||
|
36f9d091e4 | ||
|
a958f1abd7 | ||
0909683e87 |
1 changed files with 2 additions and 41 deletions
|
@ -1,24 +1,7 @@
|
||||||
# Attempt to fix json with pillar variables in variable
|
# Attempt to fix json with pillar variables in variable
|
||||||
{% set client_secret = salt['pillar.get']('paperless:webserver:keycloak:client_secret', '<CLIENT_SECRET>') %}
|
{% set client_secret = salt['pillar.get']('paperless:webserver:keycloak:client_secret', '<CLIENT_SECRET>') %}
|
||||||
{% set oauth_server = salt['pillar.get']('paperless:webserver:keycloak:server_url', 'https://<KEYCLOAK_SERVER>/realms/<REALM>/.well-known/openid-configuration') %}
|
{% set oauth_server = salt['pillar.get']('paperless:webserver:keycloak:server_url', 'https://<KEYCLOAK_SERVER>/realms/<REALM>/.well-known/openid-configuration') %}
|
||||||
|
{% set PAPERLESS_SOCIALACCOUNT_PROVIDERS_ = {'openid_connect':{'APPS':[{'provider_id': 'keycloak', 'name': 'Keycloak', 'client_id': 'paperless', 'secret': client_secret, 'settings':{'server_url': oauth_server}}]}}|tojson%}
|
||||||
{% set PAPERLESS_SOCIALACCOUNT_PROVIDERS =
|
|
||||||
{
|
|
||||||
'openid_connect': {
|
|
||||||
'APPS': [
|
|
||||||
{
|
|
||||||
'provider_id': 'keycloak',
|
|
||||||
'name': 'Keycloak',
|
|
||||||
'client_id': 'paperless',
|
|
||||||
'secret': client_secret,
|
|
||||||
'settings': {
|
|
||||||
'server_url': oauth_server
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%}
|
|
||||||
|
|
||||||
broker-data-directory-exists:
|
broker-data-directory-exists:
|
||||||
file.directory:
|
file.directory:
|
||||||
|
@ -122,28 +105,6 @@ tika-docker-container-running:
|
||||||
- networks:
|
- networks:
|
||||||
- paperless-network
|
- paperless-network
|
||||||
|
|
||||||
# Attempt to fix json with pillar variables in variable
|
|
||||||
{% set client_secret = salt['pillar.get']('paperless:webserver:keycloak:client_secret', '<CLIENT_SECRET>') %}
|
|
||||||
{% set oauth_server = salt['pillar.get']('paperless:webserver:keycloak:server_url', 'https://<KEYCLOAK_SERVER>/realms/<REALM>/.well-known/openid-configuration') %}
|
|
||||||
|
|
||||||
{% set PAPERLESS_SOCIALACCOUNT_PROVIDERS_ =
|
|
||||||
{
|
|
||||||
'openid_connect': {
|
|
||||||
'APPS': [
|
|
||||||
{
|
|
||||||
'provider_id': 'keycloak',
|
|
||||||
'name': 'Keycloak',
|
|
||||||
'client_id': 'paperless',
|
|
||||||
'secret': client_secret,
|
|
||||||
'settings': {
|
|
||||||
'server_url': oauth_server
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%}
|
|
||||||
|
|
||||||
paperless-docker-container-running:
|
paperless-docker-container-running:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
# The Docker setup does not use the configuration file.
|
# The Docker setup does not use the configuration file.
|
||||||
|
@ -161,7 +122,7 @@ paperless-docker-container-running:
|
||||||
- PAPERLESS_TIKA_GOTENBERG_ENDPOINT={{ salt['pillar.get']('paperless:webserver:environment:tika_gotenberg_endpoint', 'http://gotenberg:3000') }}
|
- PAPERLESS_TIKA_GOTENBERG_ENDPOINT={{ salt['pillar.get']('paperless:webserver:environment:tika_gotenberg_endpoint', 'http://gotenberg:3000') }}
|
||||||
|
|
||||||
- PAPERLESS_APPS=allauth.socialaccount.providers.openid_connect
|
- PAPERLESS_APPS=allauth.socialaccount.providers.openid_connect
|
||||||
- PAPERLESS_SOCIALACCOUNT_PROVIDERS="{{ PAPERLESS_SOCIALACCOUNT_PROVIDERS_ }}"
|
- PAPERLESS_SOCIALACCOUNT_PROVIDERS={{ PAPERLESS_SOCIALACCOUNT_PROVIDERS_ }}
|
||||||
- PAPERLESS_DISABLE_REGULAR_LOGIN={{ salt['pillar.get']('paperless:webserver:environment:disable_regular_login', 'true') }}
|
- PAPERLESS_DISABLE_REGULAR_LOGIN={{ salt['pillar.get']('paperless:webserver:environment:disable_regular_login', 'true') }}
|
||||||
- PAPERLESS_REDIRECT_LOGIN_TO_SSO={{ salt['pillar.get']('paperless:webserver:environment:redirect_login_to_sso', 'true') }}
|
- PAPERLESS_REDIRECT_LOGIN_TO_SSO={{ salt['pillar.get']('paperless:webserver:environment:redirect_login_to_sso', 'true') }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue