add more declarative gitea config
This commit is contained in:
@@ -64,11 +64,13 @@
|
|||||||
|
|
||||||
echo "Generating templated files"
|
echo "Generating templated files"
|
||||||
gomplate=${pkgs.gomplate}/bin/gomplate
|
gomplate=${pkgs.gomplate}/bin/gomplate
|
||||||
printf '%s' "${opts.database-hostname}" | $gomplate \
|
printf '{"db_hostname"="%s","web_hostname"="%s"}' \
|
||||||
|
"${opts.database-hostname}" \
|
||||||
|
"${opts.default-nginx.hostname}" | $gomplate \
|
||||||
--input-dir=${k3sDir} \
|
--input-dir=${k3sDir} \
|
||||||
--output-dir=$kubernetes_config \
|
--output-dir=$kubernetes_config \
|
||||||
--datasource credentials=file://${opts.credentialsFile}?type=application/x-env \
|
--datasource credentials=file://${opts.credentialsFile}?type=application/x-env \
|
||||||
--datasource dbhostname=stdin:
|
--datasource config=stdin:?type=application/json
|
||||||
|
|
||||||
echo "Applying k3s config"
|
echo "Applying k3s config"
|
||||||
kubectl=${pkgs.kubectl}/bin/kubectl
|
kubectl=${pkgs.kubectl}/bin/kubectl
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ spec:
|
|||||||
value: postgres
|
value: postgres
|
||||||
|
|
||||||
- name: GITEA__database__HOST
|
- name: GITEA__database__HOST
|
||||||
value: '{{ (datasource "dbhostname") }}'
|
value: '{{ (datasource "config").db_hostname }}'
|
||||||
|
|
||||||
- name: GITEA__database__NAME
|
- name: GITEA__database__NAME
|
||||||
value: '{{ (datasource "credentials").GITEA_DB_NAME }}'
|
value: '{{ (datasource "credentials").GITEA_DB_NAME }}'
|
||||||
@@ -52,6 +52,15 @@ spec:
|
|||||||
- name: GITEA__server__SSH_PORT
|
- name: GITEA__server__SSH_PORT
|
||||||
value: "30222"
|
value: "30222"
|
||||||
|
|
||||||
|
- name: GITEA__server__DOMAIN
|
||||||
|
value: '{{ (datasource "config").web_hostname }}'
|
||||||
|
|
||||||
|
- name: GITEA__server__SSH_DOMAIN
|
||||||
|
value: '{{ (datasource "config").web_hostname }}'
|
||||||
|
|
||||||
|
- name: GITEA__server__ROOT_URL
|
||||||
|
value: 'https://{{ (datasource "config").web_hostname }}/'
|
||||||
|
|
||||||
- name: GITEA__repository__MAX_CREATION_LIMIT
|
- name: GITEA__repository__MAX_CREATION_LIMIT
|
||||||
value: "0"
|
value: "0"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user