Gitea installation:修订间差异

来自WHY42
Riguz留言 | 贡献
创建页面,内容为“<syntaxhighlight lang="bash"> helm repo add gitea-charts https://dl.gitea.com/charts/ helm install gitea gitea-charts/gitea -f values.yaml -n gitea </syntaxhighlight> values.yaml: <syntaxhighlight lang="yaml"> redis-cluster: enabled: false postgresql: enabled: true postgresql-ha: enabled: false persistence: enabled: true ingress: enabled: true className: nginx hosts: - host: agent-git.ksord.com paths: - pathType: Prefix…”
 
Riguz留言 | 贡献
无编辑摘要
 
(未显示同一用户的2个中间版本)
第4行: 第4行:
</syntaxhighlight>
</syntaxhighlight>


values.yaml:
values.yaml<ref>https://docs.gitea.com/next/administration/config-cheat-sheet</ref>:
<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
redis-cluster:
redis-cluster:
第18行: 第18行:
ingress:
ingress:
   enabled: true
   enabled: true
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "50m"
   className: nginx
   className: nginx
   hosts:
   hosts:
第40行: 第42行:
       DISABLE_REGISTRATION: true
       DISABLE_REGISTRATION: true
     webhook:
     webhook:
       ALLOWED_HOST_LIST: 10.0.0.0/24
       ALLOWED_HOST_LIST: 10.0.0.0/8
</syntaxhighlight>
</syntaxhighlight>



2024年4月22日 (一) 07:04的最新版本

helm repo add gitea-charts https://dl.gitea.com/charts/
helm install gitea gitea-charts/gitea -f values.yaml -n gitea

values.yaml[1]:

redis-cluster:
  enabled: false
postgresql:
  enabled: true
postgresql-ha:
  enabled: false

persistence:
  enabled: true

ingress:
  enabled: true
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "50m"
  className: nginx
  hosts:
    - host: agent-git.ksord.com
      paths:
        - pathType: Prefix
          path: /
gitea:
  config:
    database:
      DB_TYPE: postgres
    session:
      PROVIDER: db
    cache:
      ADAPTER: memory
    queue:
      TYPE: level
    indexer:
      ISSUE_INDEXER_TYPE: bleve
      REPO_INDEXER_ENABLED: true
    service:
      DISABLE_REGISTRATION: true
    webhook:
      ALLOWED_HOST_LIST: 10.0.0.0/8
kubectl exec -it -n gitea gitea-74cd78d855-v7q77 bash
cat /data/gitea/conf/app.ini