OP#414 add params

This commit is contained in:
12ww1160
2026-02-06 13:25:03 +01:00
parent b47ff01234
commit 4c99a7649a
2 changed files with 55 additions and 41 deletions

View File

@@ -54,6 +54,12 @@
# in Gitea.
# @param [String] ga_storage_type The storage type for Gitea.
# @param [String] ga_instance_name The instance name for Gitea.
# @param [String] ga_lfs_jwt_secret The JWT secret for Git L
# FS in Gitea.
# @param [String] ga_admin_allow_create_organization Whether to allow admin
# to create organizations in Gitea.
# @param [String] ga_internal_token The internal token for Gitea.
# @param [String] ga_jwt_secret The JWT secret for Gitea.
##############################################################################
class confdroid_gitea::params (
@@ -71,6 +77,7 @@ class confdroid_gitea::params (
Boolean $ga_start_lfs = true,
Boolean $ga_start_ssh = false,
String $ga_instance_name = 'Your Gitea Instance',
String $ga_lfs_jwt_secret = 'ChangeMeLFSJWTSecret',
# database
String $ga_db_type = 'postgres',
@@ -93,13 +100,15 @@ class confdroid_gitea::params (
String $ga_admin_username = 'admin',
String $ga_admin_password = 'ChangeMeAdmin123!',
String $ga_admin_email = 'admin@example.com',
String $ga_admin_allow_create_organization = 'true',
String $ga_internal_token = 'ChangeMeInternalToken',
String $ga_jwt_secret = 'ChangeMeJWTSecret',
# service
Boolean $ga_disable_registration = false,
Boolean $ga_require_signin_view = false,
Boolean $ga_enable_packages = true,
Boolean $ga_enable_registry = true,
String $ga_storage_type = 'filesystem',
# firewall
Boolean $ga_use_firewall = true,
String $ga_http_port = '3000',

View File

@@ -27,6 +27,7 @@ SSH_PORT = <%= @ga_ssh_port %>
SSH_LISTEN_PORT = <%= @ga_ssh_port %>
LFS_START_SERVER = <%= @ga_start_lfs %>
START_SSH_SERVER = <%= @ga_start_ssh %>
LFS_JWT_SECRET = <%= @ga_lfs_jwt_secret %>
[database]
DB_TYPE = <%= @ga_db_type %>
@@ -63,6 +64,7 @@ SECRET_KEY = <%= @ga_secret_key %>
REVERSE_PROXY_LIMIT = <%= @ga_reverse_proxy_limit %>
REVERSE_PROXY_TRUSTED_PROXIES = <%= @ga_reverse_proxy_trusted_proxies %>
DISABLE_ROOT_CHECK = <%= @ga_disable_root_check %>
INTERNAL_TOKEN = <%= @ga_internal_token %>
[service]
DISABLE_REGISTRATION = <%= @ga_disable_registration %>
@@ -75,6 +77,7 @@ PATH = <%= @ga_lfs_dir %>
USER = <%= @ga_admin_username %>
PASSWORD = <%= @ga_admin_password %>
EMAIL = <%= @ga_admin_email %>
ALLOW_CREATE_ORGANIZATION = <%= @ga_admin_allow_create_organization %>
[packages]
ENABLE = <%= @ga_enable_packages %>
@@ -86,5 +89,7 @@ STORAGE_TYPE = <%= @ga_storage_type %>
[app]
NAME = <%= @ga_instance_name %>
[oauth2]
JWT_SECRET = <%= @ga_jwt_secret %>