| 1 | [instance] |
| 2 | name = "fabrica" |
| 3 | url = "http://localhost:8080" |
| 4 | description = "" |
| 5 | default_branch = "main" |
| 6 | allow_anonymous = true |
| 7 | |
| 8 | [server] |
| 9 | address = "0.0.0.0" |
| 10 | port = 8080 |
| 11 | behind_proxy = false |
| 12 | graceful_shutdown_secs = 20 |
| 13 | max_body_bytes = 1048576 |
| 14 | |
| 15 | [ssh] |
| 16 | enabled = true |
| 17 | address = "0.0.0.0" |
| 18 | port = 2222 |
| 19 | host_key_path = "data/host_key" |
| 20 | clone_host = "localhost" |
| 21 | clone_port = 22 |
| 22 | |
| 23 | [storage] |
| 24 | data_dir = "data/fabrica" |
| 25 | repo_dir = "data/repos" |
| 26 | |
| 27 | [database] |
| 28 | url = "sqlite://data/fabrica.db" |
| 29 | max_connections = 16 |
| 30 | |
| 31 | [auth] |
| 32 | session_ttl_days = 30 |
| 33 | token_ttl_days = 90 |
| 34 | invite_ttl_hours = 72 |
| 35 | cookie_name = "fabrica_session" |
| 36 | cookie_secure = true |
| 37 | argon2_m_cost = 19456 |
| 38 | argon2_t_cost = 2 |
| 39 | argon2_p_cost = 1 |
| 40 | |
| 41 | [mail] |
| 42 | backend = "stdout" |
| 43 | from = "fabrica@localhost" |
| 44 | host = "" |
| 45 | port = 587 |
| 46 | username = "" |
| 47 | encryption = "starttls" |
| 48 | timeout_secs = 15 |
| 49 | |
| 50 | [ui] |
| 51 | theme = "dark" |
| 52 | themes_dir = "data/themes" |
| 53 | assets_dir = "data/assets" |
| 54 | allow_theme_choice = true |
| 55 | show_runs = false |
| 56 | diff_context_lines = 3 |
| 57 | max_highlight_bytes = 1048576 |
| 58 | max_diff_bytes = 5242880 |
| 59 | tree_history_limit = 1000 |
| 60 | |
| 61 | [git] |
| 62 | binary = "git" |
| 63 | transport_timeout_secs = 3600 |
| 64 | max_pack_size_bytes = 536870912 |
| 65 | |
| 66 | [search] |
| 67 | concurrency = 4 |
| 68 | timeout_secs = 10 |
| 69 | max_results = 200 |
| 70 | |
| 71 | [log] |
| 72 | level = "info" |
| 73 | format = "pretty" |