253 lines
6.3 KiB
JSON
253 lines
6.3 KiB
JSON
{
|
|
"Cache": {
|
|
"adapter": "memory",
|
|
"db": 0,
|
|
"enabled": false,
|
|
"host": "localhost",
|
|
"max_entries": 10000,
|
|
"password": "",
|
|
"port": 6379,
|
|
"ttl": 86400
|
|
},
|
|
"Database": {
|
|
"conn_max_lifetime": 3600,
|
|
"host": "localhost",
|
|
"log_sql": false,
|
|
"max_idle_conns": 10,
|
|
"max_open_conns": 100,
|
|
"name": "forgejo",
|
|
"password": "",
|
|
"path": "/var/lib/forgejo/data/forgejo.db",
|
|
"port": 5432,
|
|
"ssl_mode": "disable",
|
|
"typ": "sqlite",
|
|
"user": "forgejo"
|
|
},
|
|
"Forgejo": {
|
|
"app_name": "Forgejo",
|
|
"app_path": "/opt/forgejo",
|
|
"cache": {
|
|
"adapter": "memory",
|
|
"db": 0,
|
|
"enabled": false,
|
|
"host": "localhost",
|
|
"max_entries": 10000,
|
|
"password": "",
|
|
"port": 6379,
|
|
"ttl": 86400
|
|
},
|
|
"custom_path": "/etc/forgejo/custom",
|
|
"data_path": "/var/lib/forgejo/data",
|
|
"database": {
|
|
"conn_max_lifetime": 3600,
|
|
"host": "localhost",
|
|
"log_sql": false,
|
|
"max_idle_conns": 10,
|
|
"max_open_conns": 100,
|
|
"name": "forgejo",
|
|
"password": "",
|
|
"path": "/var/lib/forgejo/data/forgejo.db",
|
|
"port": 5432,
|
|
"ssl_mode": "disable",
|
|
"typ": "sqlite",
|
|
"user": "forgejo"
|
|
},
|
|
"enable_gist": true,
|
|
"enable_issues": true,
|
|
"enable_migrations": true,
|
|
"enable_packages": false,
|
|
"enable_pull_requests": true,
|
|
"enable_wiki": true,
|
|
"http": {
|
|
"cert_file": "",
|
|
"cors_enabled": false,
|
|
"cors_origins": [],
|
|
"http_addr": "127.0.0.1",
|
|
"http_port": 3000,
|
|
"key_file": "",
|
|
"protocol": "http",
|
|
"root_url": "http://localhost:3000",
|
|
"tls_ciphers": "",
|
|
"tls_min_version": "1.2"
|
|
},
|
|
"log_format": "console",
|
|
"log_level": "info",
|
|
"log_path": "/var/log/forgejo",
|
|
"mail": {
|
|
"enabled": false,
|
|
"protocol": "smtp",
|
|
"skip_verify": false,
|
|
"smtp_addr": "localhost",
|
|
"smtp_from": "noreply@example.com",
|
|
"smtp_password": "",
|
|
"smtp_port": 25,
|
|
"smtp_user": "",
|
|
"use_tls": false
|
|
},
|
|
"name": "forgejo",
|
|
"oauth2": {
|
|
"enabled": true,
|
|
"jwt_secret": ""
|
|
},
|
|
"performance": {
|
|
"max_connections": 100,
|
|
"request_timeout": 60,
|
|
"slow_query_log": false,
|
|
"slow_query_threshold": 1000,
|
|
"workers": 4
|
|
},
|
|
"repository": {
|
|
"default_branch": "main",
|
|
"default_private": false,
|
|
"enable_push_create_org": false,
|
|
"enable_push_create_user": false,
|
|
"lfs_enabled": false,
|
|
"lfs_max_file_size": 1073741824,
|
|
"root_path": "/var/lib/forgejo/repos"
|
|
},
|
|
"security": {
|
|
"cookie_secure": true,
|
|
"cookie_username": "gitea_awesome",
|
|
"csrf_cookie_http_only": true,
|
|
"csrf_cookie_secure": true,
|
|
"disable_registration": false,
|
|
"enable_openid": true,
|
|
"enable_openid_signup": false,
|
|
"login_remember_days": 7,
|
|
"min_password_length": 6,
|
|
"register_email_confirm": false
|
|
},
|
|
"session": {
|
|
"cookie_http_only": true,
|
|
"cookie_name": "i_like_forgejo",
|
|
"cookie_secure": true,
|
|
"expire_time": 604800,
|
|
"gc_interval": 86400,
|
|
"provider": "memory",
|
|
"same_site": "Lax"
|
|
},
|
|
"ssh": {
|
|
"enabled": true,
|
|
"key_test_path": "/var/lib/forgejo/ssh",
|
|
"listen_addr": "127.0.0.1",
|
|
"listen_port": 2222,
|
|
"min_priv_key_length": 1024,
|
|
"root_path": "/var/lib/forgejo/.ssh",
|
|
"server_ciphers": "aes128-ctr, aes192-ctr, aes256-ctr",
|
|
"server_key_exchange_algorithms": "diffie-hellman-group14-sha1",
|
|
"server_macs": "hmac-sha2-256, hmac-sha2-256-etm@openssh.com"
|
|
},
|
|
"storage": {
|
|
"path": "/var/lib/forgejo/data",
|
|
"s3_access_key": "",
|
|
"s3_bucket": "",
|
|
"s3_endpoint": "",
|
|
"s3_path_style": true,
|
|
"s3_region": "us-east-1",
|
|
"s3_secret_key": "",
|
|
"typ": "local"
|
|
},
|
|
"temp_path": "/tmp/forgejo",
|
|
"time_format": "RFC1123",
|
|
"user": {
|
|
"gid": 5000,
|
|
"home": "/var/lib/forgejo",
|
|
"name": "forgejo",
|
|
"shell": "/usr/sbin/nologin",
|
|
"uid": 5000
|
|
},
|
|
"version": "latest"
|
|
},
|
|
"HTTP": {
|
|
"cert_file": "",
|
|
"cors_enabled": false,
|
|
"cors_origins": [],
|
|
"http_addr": "127.0.0.1",
|
|
"http_port": 3000,
|
|
"key_file": "",
|
|
"protocol": "http",
|
|
"root_url": "http://localhost:3000",
|
|
"tls_ciphers": "",
|
|
"tls_min_version": "1.2"
|
|
},
|
|
"Mail": {
|
|
"enabled": false,
|
|
"protocol": "smtp",
|
|
"skip_verify": false,
|
|
"smtp_addr": "localhost",
|
|
"smtp_from": "noreply@example.com",
|
|
"smtp_password": "",
|
|
"smtp_port": 25,
|
|
"smtp_user": "",
|
|
"use_tls": false
|
|
},
|
|
"OAuth2": {
|
|
"enabled": true,
|
|
"jwt_secret": ""
|
|
},
|
|
"Performance": {
|
|
"max_connections": 100,
|
|
"request_timeout": 60,
|
|
"slow_query_log": false,
|
|
"slow_query_threshold": 1000,
|
|
"workers": 4
|
|
},
|
|
"Repository": {
|
|
"default_branch": "main",
|
|
"default_private": false,
|
|
"enable_push_create_org": false,
|
|
"enable_push_create_user": false,
|
|
"lfs_enabled": false,
|
|
"lfs_max_file_size": 1073741824,
|
|
"root_path": "/var/lib/forgejo/repos"
|
|
},
|
|
"SSH": {
|
|
"enabled": true,
|
|
"key_test_path": "/var/lib/forgejo/ssh",
|
|
"listen_addr": "127.0.0.1",
|
|
"listen_port": 2222,
|
|
"min_priv_key_length": 1024,
|
|
"root_path": "/var/lib/forgejo/.ssh",
|
|
"server_ciphers": "aes128-ctr, aes192-ctr, aes256-ctr",
|
|
"server_key_exchange_algorithms": "diffie-hellman-group14-sha1",
|
|
"server_macs": "hmac-sha2-256, hmac-sha2-256-etm@openssh.com"
|
|
},
|
|
"Security": {
|
|
"cookie_secure": true,
|
|
"cookie_username": "gitea_awesome",
|
|
"csrf_cookie_http_only": true,
|
|
"csrf_cookie_secure": true,
|
|
"disable_registration": false,
|
|
"enable_openid": true,
|
|
"enable_openid_signup": false,
|
|
"login_remember_days": 7,
|
|
"min_password_length": 6,
|
|
"register_email_confirm": false
|
|
},
|
|
"Session": {
|
|
"cookie_http_only": true,
|
|
"cookie_name": "i_like_forgejo",
|
|
"cookie_secure": true,
|
|
"expire_time": 604800,
|
|
"gc_interval": 86400,
|
|
"provider": "memory",
|
|
"same_site": "Lax"
|
|
},
|
|
"Storage": {
|
|
"path": "/var/lib/forgejo/data",
|
|
"s3_access_key": "",
|
|
"s3_bucket": "",
|
|
"s3_endpoint": "",
|
|
"s3_path_style": true,
|
|
"s3_region": "us-east-1",
|
|
"s3_secret_key": "",
|
|
"typ": "local"
|
|
},
|
|
"User": {
|
|
"gid": 5000,
|
|
"home": "/var/lib/forgejo",
|
|
"name": "forgejo",
|
|
"shell": "/usr/sbin/nologin",
|
|
"uid": 5000
|
|
}
|
|
}
|