124 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			124 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| APP_NAME = Gitea
 | |
| RUN_MODE = prod
 | |
| 
 | |
| [server]
 | |
| SSH_DOMAIN       = gitea.kosmos.org
 | |
| HTTP_PORT        = 3000
 | |
| DISABLE_SSH      = false
 | |
| SSH_PORT         = 22
 | |
| PROTOCOL = http
 | |
| DOMAIN = gitea.kosmos.org
 | |
| # Gitea is running behind an nginx reverse load balancer, use an HTTPS root URL
 | |
| ROOT_URL = https://%(DOMAIN)s
 | |
| # REDIRECT_OTHER_PORT = true
 | |
| # PORT_TO_REDIRECT = 3001
 | |
| # ENABLE_LETSENCRYPT = true
 | |
| # LETSENCRYPT_ACCEPTTOS = true
 | |
| # LETSENCRYPT_DIRECTORY = /data/gitea/https
 | |
| # LETSENCRYPT_EMAIL = ops@5apps.com
 | |
| 
 | |
| [database]
 | |
| DB_TYPE = postgres
 | |
| HOST    = <%= @postgresql_host %>
 | |
| NAME    = gitea
 | |
| USER    = gitea
 | |
| PASSWD  = <%= @postgresql_password %>
 | |
| SSL_MODE = disable
 | |
| MAX_OPEN_CONNS = 20
 | |
| 
 | |
| [repository]
 | |
| ROOT = <%= @repository_root_directory %>
 | |
| DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true
 | |
| 
 | |
| # [indexer]
 | |
| # ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
 | |
| 
 | |
| [session]
 | |
| PROVIDER = file
 | |
| PROVIDER_CONFIG = sessions
 | |
| # Enable when TLS is enabled
 | |
| COOKIE_SECURE = true
 | |
| 
 | |
| [mailer]
 | |
| ENABLED = true
 | |
| PROTOCOL = smtp+startls
 | |
| SMTP_ADDR = <%= @smtp_addr %>
 | |
| SMTP_PORT = <%= @smtp_port %>
 | |
| USER = <%= @smtp_user %>
 | |
| PASSWD = <%= @smtp_password %>
 | |
| FROM = gitea@kosmos.org
 | |
| 
 | |
| [security]
 | |
| INTERNAL_TOKEN = <%= @internal_token %>
 | |
| INSTALL_LOCK   = true
 | |
| SECRET_KEY     = <%= @secret_key %>
 | |
| 
 | |
| [service]
 | |
| REGISTER_EMAIL_CONFIRM            = false
 | |
| ENABLE_NOTIFY_MAIL                = true
 | |
| DISABLE_REGISTRATION              = true
 | |
| ALLOW_ONLY_EXTERNAL_REGISTRATION  = false
 | |
| ENABLE_CAPTCHA                    = false
 | |
| REQUIRE_SIGNIN_VIEW               = false
 | |
| DEFAULT_KEEP_EMAIL_PRIVATE        = true
 | |
| DEFAULT_ALLOW_CREATE_ORGANIZATION = false
 | |
| DEFAULT_ENABLE_TIMETRACKING       = false
 | |
| NO_REPLY_ADDRESS                  = noreply.kosmos.org
 | |
| 
 | |
| [picture]
 | |
| DISABLE_GRAVATAR        = false
 | |
| ENABLE_FEDERATED_AVATAR = true
 | |
| 
 | |
| [openid]
 | |
| ENABLE_OPENID_SIGNIN = false
 | |
| ENABLE_OPENID_SIGNUP = false
 | |
| 
 | |
| [log]
 | |
| MODE = console
 | |
| LEVEL = <%= @config["log"]["level"] %>
 | |
| logger.router.MODE = <%= @config["log"]["logger.router.MODE"] %>
 | |
| logger.xorm.MODE = <%= @config["log"]["logger.xorm.MODE"] %>
 | |
| logger.access.MODE = <%= @config["log"]["logger.access.MODE"] %>
 | |
| 
 | |
| [attachment]
 | |
| ENABLED = true
 | |
| PATH = data/attachments
 | |
| ALLOWED_TYPES = image/gif|image/jpeg|image/png|application/zip|application/gzip
 | |
| ; ; Max size of each file. Defaults to 4MB
 | |
| MAX_SIZE = 10
 | |
| ; ; Max number of files per upload. Defaults to 5
 | |
| MAX_FILES = 5
 | |
| 
 | |
| [cron.delete_repo_archives]
 | |
| ENABLED = true
 | |
| RUN_AT_START = false
 | |
| NOTICE_ON_SUCCESS = false
 | |
| SCHEDULE = @every 15m
 | |
| 
 | |
| <% if c = @config["webhook"] %>
 | |
| [webhook]
 | |
| <% if c["allowed_host_list"] %>ALLOWED_HOST_LIST = <%= c["allowed_host_list"] %><% end %>
 | |
| <% end %>
 | |
| 
 | |
| <% if c = @config["storage"] %>
 | |
| [storage]
 | |
| <% if c["type"] == "minio" %>
 | |
| STORAGE_TYPE=minio
 | |
| MINIO_ENDPOINT=<%= c["endpoint"] %>
 | |
| MINIO_ACCESS_KEY_ID=<%= @s3_key_id %>
 | |
| MINIO_SECRET_ACCESS_KEY=<%= @s3_secret_key %>
 | |
| MINIO_BUCKET=<%= @s3_bucket %>
 | |
| MINIO_LOCATION=<%= c["location"] %>
 | |
| MINIO_USE_SSL=<%= c["use_ssl"] %>
 | |
| <% end %>
 | |
| <% end %>
 | |
| 
 | |
| <% if @config["actions"]["enabled"] %>
 | |
| [actions]
 | |
| ENABLED = true
 | |
| <% end %>
 | |
| 
 | |
| [other]
 | |
| SHOW_FOOTER_VERSION = false
 | |
| SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
 |