This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
/
init_global_config.go
43 lines (41 loc) · 1.65 KB
/
init_global_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright 2018 The OpenPitrix Authors. All rights reserved.
// Use of this source code is governed by a Apache license
// that can be found in the LICENSE file.
package config
const InitialGlobalConfig = `app:
default_draft_status: true
repo:
# cron usage: https://godoc.org/github.com/robfig/cron#hdr-Usage
#
# "@every 1h30m" means Every hour thirty
# "@hourly" means Every hour
# "0 30 * * * *" means Every hour on the half hour
#
# Field name | Mandatory? | Allowed values | Allowed special characters
# ---------- | ---------- | -------------- | --------------------------
# Seconds | Yes | 0-59 | * / , -
# Minutes | Yes | 0-59 | * / , -
# Hours | Yes | 0-23 | * / , -
# Day of month | Yes | 1-31 | * / , - ?
# Month | Yes | 1-12 or JAN-DEC | * / , -
# Day of week | Yes | 0-6 or SUN-SAT | * / , - ?
#
cron: "0 30 4 * * *"
max_repo_events: 20
cluster:
frontgate_conf: '{"app_id":"app-ABCDEFGHIJKLMNOPQRST","version_id":"appv-ABCDEFGHIJKLMNOPQRST","name":"frontgate","description":"OpenPitrixbuilt-infrontgateservice","subnet":"","nodes":[{"container":{"type":"docker","image":"openpitrix/openpitrix:metadata"},"count":1,"cpu":1,"memory":1024,"volume":{"size":10,"mount_point":"/data","filesystem":"ext4"}}]}'
frontgate_auto_delete: true
frontgate_auto_update: false
job:
max_working_jobs: 20
task:
max_working_tasks: 20
pilot:
ip: 127.0.0.1
port: 9114
basic_config:
platform_name: OpenPitrix
platform_url: https://lab.openpitrix.io
install_module:
iam: false
notification: false`