Use more attributes for Gitea config
This commit is contained in:
@@ -6,6 +6,7 @@ node.default["gitea"]["working_directory"] = "/var/lib/gitea"
|
||||
node.default["gitea"]["port"] = 3000
|
||||
node.default["gitea"]["postgresql_host"] = "localhost:5432"
|
||||
node.default["gitea"]["domain"] = "gitea.kosmos.org"
|
||||
node.default["gitea"]["email"] = "gitea@kosmos.org"
|
||||
|
||||
node.default["gitea"]["config"] = {
|
||||
"log": {
|
||||
|
||||
@@ -78,6 +78,8 @@ if node.chef_environment == "production"
|
||||
end
|
||||
|
||||
config_variables = {
|
||||
domain: node["gitea"]["domain"],
|
||||
email: node["gitea"]["email"],
|
||||
working_directory: working_directory,
|
||||
git_home_directory: git_home_directory,
|
||||
repository_root_directory: repository_root_directory,
|
||||
|
||||
@@ -2,12 +2,12 @@ APP_NAME = Gitea
|
||||
RUN_MODE = prod
|
||||
|
||||
[server]
|
||||
SSH_DOMAIN = gitea.kosmos.org
|
||||
SSH_DOMAIN = <%= @domain %>
|
||||
HTTP_PORT = 3000
|
||||
DISABLE_SSH = false
|
||||
SSH_PORT = 22
|
||||
PROTOCOL = http
|
||||
DOMAIN = gitea.kosmos.org
|
||||
DOMAIN = <%= @domain %>
|
||||
# Gitea is running behind an nginx reverse load balancer, use an HTTPS root URL
|
||||
ROOT_URL = https://%(DOMAIN)s
|
||||
# REDIRECT_OTHER_PORT = true
|
||||
@@ -46,7 +46,7 @@ SMTP_ADDR = <%= @smtp_addr %>
|
||||
SMTP_PORT = <%= @smtp_port %>
|
||||
USER = <%= @smtp_user %>
|
||||
PASSWD = <%= @smtp_password %>
|
||||
FROM = gitea@kosmos.org
|
||||
FROM = <%= @email %>
|
||||
|
||||
[security]
|
||||
INTERNAL_TOKEN = <%= @internal_token %>
|
||||
|
||||
Reference in New Issue
Block a user