URGENT: Fix production Paperless integration
- Remove hardcoded fallbacks from config.py (relied on old prod values) - Add missing Paperless env vars to compose.yml for production - Update compose.dev.yml with complete Paperless configuration - Fixes 500 errors by ensuring all env vars are passed to containers Required: VPS .env must have PAPERLESS_*_TAG_ID and PAPERLESS_*_TAG variables
This commit is contained in:
@@ -38,16 +38,14 @@ def get_paperless_config():
|
||||
dict: Dictionary containing all Paperless configuration
|
||||
"""
|
||||
return {
|
||||
"api_url": get_config("paperless_api_url", "http://192.168.178.167:30070"),
|
||||
"api_token": get_config("paperless_api_token", ""),
|
||||
"destinataere_tag": get_config(
|
||||
"paperless_destinataere_tag", "Stiftung_Destinatäre"
|
||||
),
|
||||
"destinataere_tag_id": get_config("paperless_destinataere_tag_id", "210"),
|
||||
"land_tag": get_config("paperless_land_tag", "Stiftung_Land_und_Pächter"),
|
||||
"land_tag_id": get_config("paperless_land_tag_id", "204"),
|
||||
"admin_tag": get_config("paperless_admin_tag", "Stiftung_Administration"),
|
||||
"admin_tag_id": get_config("paperless_admin_tag_id", "216"),
|
||||
"api_url": get_config("paperless_api_url"),
|
||||
"api_token": get_config("paperless_api_token"),
|
||||
"destinataere_tag": get_config("paperless_destinataere_tag"),
|
||||
"destinataere_tag_id": get_config("paperless_destinataere_tag_id"),
|
||||
"land_tag": get_config("paperless_land_tag"),
|
||||
"land_tag_id": get_config("paperless_land_tag_id"),
|
||||
"admin_tag": get_config("paperless_admin_tag"),
|
||||
"admin_tag_id": get_config("paperless_admin_tag_id"),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user