Upgrade Gitea 1.18.0

Requires some config changes for the mailer.
This commit is contained in:
Râu Cao
2022-12-30 23:05:40 +07:00
parent 0c37504ac6
commit e54112418e
3 changed files with 10 additions and 5 deletions

View File

@@ -10,6 +10,8 @@ config_directory = "/etc/gitea"
gitea_binary_path = "/usr/local/bin/gitea"
gitea_data_bag_item = data_bag_item("credentials", "gitea")
smtp_credentials = data_bag_item("credentials", "smtp")
smtp_addr = smtp_credentials["relayhost"].split(":")[0]
smtp_port = smtp_credentials["relayhost"].split(":")[1]
jwt_secret = gitea_data_bag_item["jwt_secret"]
internal_token = gitea_data_bag_item["internal_token"]
secret_key = gitea_data_bag_item["secret_key"]
@@ -84,7 +86,8 @@ config_variables = {
secret_key: secret_key,
postgresql_host: node["gitea"]["postgresql_host"],
postgresql_password: gitea_data_bag_item["postgresql_password"],
smtp_host: smtp_credentials["relayhost"],
smtp_addr: smtp_addr,
smtp_port: smtp_port,
smtp_user: smtp_credentials["user_name"],
smtp_password: smtp_credentials["password"],
config: node["gitea"]["config"],