|
| 1 | +import "./pkl/ModHost.pkl" |
| 2 | + |
| 3 | +app: ModHost.AppConfig = new { |
| 4 | + server { |
| 5 | + host = "{{ server.host }}" |
| 6 | + port = {{ server.port }} |
| 7 | + } |
| 8 | + |
| 9 | + postgres { |
| 10 | + host = "{{ postgres.host }}"" |
| 11 | + port = {{ postgres.port }} |
| 12 | + user = "{{ postgres.user }}" |
| 13 | + {% if let Some(pass) = postgres.pass %}pass = "{{ pass }}"{% endif %} |
| 14 | + database = "{{ postgres.database }}" |
| 15 | + } |
| 16 | + |
| 17 | + meilisearch { |
| 18 | + host = "{{ meilisearch.host }}" |
| 19 | + port = {{ meilisearch.port }} |
| 20 | + protocol = "{{ meilisearch.protocol }}" |
| 21 | + key = "{{ meilisearch.key }}" |
| 22 | + |
| 23 | + indexes { |
| 24 | + projects = "{{ meilisearch.project_index }}" |
| 25 | + } |
| 26 | + } |
| 27 | + |
| 28 | + auth { |
| 29 | + github { |
| 30 | + client_id = "{{ auth.github.client_id }}" |
| 31 | + client_secret = "{{ auth.github.client_secret }}" |
| 32 | + } |
| 33 | + } |
| 34 | + |
| 35 | + storage { |
| 36 | + s3 { |
| 37 | + region = "{{ storage.s3_region }}" |
| 38 | + endpoint = "{{ storage.s3_endpoint }}" |
| 39 | + access_key = "{{ storage.s3_access_key }}" |
| 40 | + secret_key = "{{ storage.s3_secret_key }}" |
| 41 | + } |
| 42 | + |
| 43 | + buckets { |
| 44 | + projects = "{{ storage.projects_bucket }}" |
| 45 | + gallery = "{{ storage.gallery_bucket }}" |
| 46 | + } |
| 47 | + } |
| 48 | + |
| 49 | + ui { |
| 50 | + app = "{{ ui.app }}" |
| 51 | + tagline = "{{ ui.tagline }}" |
| 52 | + show_beta = {{ ui.show_beta }} |
| 53 | + default_theme = "{{ ui.default_theme }}" |
| 54 | + theme_color = "{{ ui.theme_color }}" |
| 55 | + badge_base = "{{ ui.badge_base }}" |
| 56 | + badge_secondary = "{{ ui.badge_secondary }}" |
| 57 | + |
| 58 | + favicon { |
| 59 | + ico = "{{ ui.favicon_ico }}" |
| 60 | + png = "{{ ui.favicon_png }}" |
| 61 | + } |
| 62 | + |
| 63 | + game { |
| 64 | + beta_name = "{{ ui.game_beta_name.stringify() }}" |
| 65 | + } |
| 66 | + |
| 67 | + projects { |
| 68 | + kind = "{{ ui.project_kind.stringify() }}" |
| 69 | + |
| 70 | + file_formats = List( |
| 71 | + {% for fmt in ui.project_file_formats -%} |
| 72 | + "{{ fmt }}", |
| 73 | + {% endfor %} |
| 74 | + ) |
| 75 | + } |
| 76 | + } |
| 77 | + |
| 78 | + admin { |
| 79 | + stats { |
| 80 | + interval = {{ admin.fmt_stats_interval() }} |
| 81 | + } |
| 82 | + } |
| 83 | +} |
| 84 | + |
| 85 | +output { |
| 86 | + value = app |
| 87 | + renderer = ModHost.renderer() |
| 88 | +} |
0 commit comments