Parcourir la source

Add default admin env's paperless-ngx (#133)

Macley il y a 2 ans
Parent
commit
12caa1ab78

+ 12 - 0
pi-hosted_template/template/portainer-v2.json

@@ -5012,6 +5012,18 @@
 					"name": "PAPERLESSURL",
 					"description": "Example https://paperless.example.com.  It would be best to run this behind a reverse proxy"
 				},
+				{
+					"default": "",
+					"label": "Administrator username",
+					"name": "ADMIN_USER",
+					"description": "Set the name of the default admin user."
+				},
+				{
+					"default": "",
+					"label": "Administrator password",
+					"name": "ADMIN_PASS",
+					"description": "Set the password of the default admin user."
+				},
 				{
 					"default": "",
 					"label": "Secret Key",

+ 3 - 1
stack/paperless-ngx.yml

@@ -25,9 +25,11 @@ services:
       USERMAP_UID: ${PUID}
       USERMAP_GID: ${PGID}
       PAPERLESS_TIME_ZONE: ${TZ}
-      #PAPERLESS_URL: ${PAPERLESSURL}
+      PAPERLESS_URL: ${PAPERLESSURL}
       PAPERLESS_SECRET_KEY: ${RANDOMKEY}
       PAPERLESS_OCR_LANGUAGE: ${LANG}
+      PAPERLESS_ADMIN_USER: ${ADMIN_USER}
+      PAPERLESS_ADMIN_PASSWORD: ${ADMIN_PASS}
     networks:
       - paperless_network
     volumes:

+ 24 - 12
template/apps/paperless-ngx.json

@@ -18,30 +18,42 @@
 			"name": "PGID",
                         "description": "for GroupID"
 		},
-                {
-                        "default": "America/New_York",
-                        "label": "TZ",
-                        "name": "TZ",
-                        "description": "Specify a timezone to use for example America/New_York"
-                },
+        {
+            "default": "America/New_York",
+            "label": "TZ",
+            "name": "TZ",
+            "description": "Specify a timezone to use for example America/New_York"
+        },
 		{
 			"default": "",
 			"label": "PAPERLESS_URL",
 			"name": "PAPERLESSURL",
                         "description": "Example https://paperless.example.com.  It would be best to run this behind a reverse proxy"
 		},
+		{
+			"default": "",
+			"label": "Administrator username",
+			"name": "ADMIN_USER",
+                        "description": "Set the name of the default admin user."
+		},
+		{
+			"default": "",
+			"label": "Administrator password",
+			"name": "ADMIN_PASS",
+                        "description": "Set the password of the default admin user."
+		},
 		{
 			"default": "",
 			"label": "Secret Key",
 			"name": "RANDOMKEY",
                         "description": "This should be a very long sequence of random characters."
 		},
-                {
-                        "default": "eng",
-                        "label": "OCR Language",
-                        "name": "LANG",
-                        "description": "The default language to use for OCR"
-                }
+        {
+            "default": "eng",
+            "label": "OCR Language",
+            "name": "LANG",
+            "description": "The default language to use for OCR"
+        }
 	],
 	"logo": "https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/images/paperless.png",
 	"name": "paperless-ngx",

+ 12 - 0
template/portainer-v2-amd64.json

@@ -5852,6 +5852,18 @@
 					"name": "PAPERLESSURL",
 					"description": "Example https://paperless.example.com.  It would be best to run this behind a reverse proxy"
 				},
+				{
+					"default": "",
+					"label": "Administrator username",
+					"name": "ADMIN_USER",
+					"description": "Set the name of the default admin user."
+				},
+				{
+					"default": "",
+					"label": "Administrator password",
+					"name": "ADMIN_PASS",
+					"description": "Set the password of the default admin user."
+				},
 				{
 					"default": "",
 					"label": "Secret Key",

+ 12 - 0
template/portainer-v2-arm32.json

@@ -5012,6 +5012,18 @@
 					"name": "PAPERLESSURL",
 					"description": "Example https://paperless.example.com.  It would be best to run this behind a reverse proxy"
 				},
+				{
+					"default": "",
+					"label": "Administrator username",
+					"name": "ADMIN_USER",
+					"description": "Set the name of the default admin user."
+				},
+				{
+					"default": "",
+					"label": "Administrator password",
+					"name": "ADMIN_PASS",
+					"description": "Set the password of the default admin user."
+				},
 				{
 					"default": "",
 					"label": "Secret Key",

+ 12 - 0
template/portainer-v2-arm64.json

@@ -5834,6 +5834,18 @@
 					"name": "PAPERLESSURL",
 					"description": "Example https://paperless.example.com.  It would be best to run this behind a reverse proxy"
 				},
+				{
+					"default": "",
+					"label": "Administrator username",
+					"name": "ADMIN_USER",
+					"description": "Set the name of the default admin user."
+				},
+				{
+					"default": "",
+					"label": "Administrator password",
+					"name": "ADMIN_PASS",
+					"description": "Set the password of the default admin user."
+				},
 				{
 					"default": "",
 					"label": "Secret Key",