From 061ae563812ded0326d6cf9d1922b758aab92f0e Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Tue, 26 Mar 2024 18:24:48 -0400 Subject: [PATCH] fix drone ci --- group_vars/drone.yml | 1 + playbooks/roles/drone/templates/docker-compose.yml.j2 | 1 + .../https.git.hatecomputers.club.conf | 3 +++ 3 files changed, 5 insertions(+) diff --git a/group_vars/drone.yml b/group_vars/drone.yml index 8637f0d..ad74e9a 100644 --- a/group_vars/drone.yml +++ b/group_vars/drone.yml @@ -2,3 +2,4 @@ drone_gitea_server: "https://git.hatecomputers.club" drone_server_host: "https://ci.hatecomputers.club" +drone_admin_username: "gitea_admin" diff --git a/playbooks/roles/drone/templates/docker-compose.yml.j2 b/playbooks/roles/drone/templates/docker-compose.yml.j2 index 0abcaf8..5a4d174 100644 --- a/playbooks/roles/drone/templates/docker-compose.yml.j2 +++ b/playbooks/roles/drone/templates/docker-compose.yml.j2 @@ -16,6 +16,7 @@ services: - DRONE_SERVER_PROTO=https - DRONE_SERVER_HOST={{ drone_server_host }} - DRONE_RPC_SECRET={{ drone_rpc_secret }} + - DRONE_USER_CREATE=username:{{ drone_admin_username }},admin:true drone-runner: container_name: drone_runner image: drone/drone-runner-docker:latest diff --git a/playbooks/roles/nginx/templates/himmel.int.infra.hatecomputers.club/https.git.hatecomputers.club.conf b/playbooks/roles/nginx/templates/himmel.int.infra.hatecomputers.club/https.git.hatecomputers.club.conf index 73111e6..e290d34 100644 --- a/playbooks/roles/nginx/templates/himmel.int.infra.hatecomputers.club/https.git.hatecomputers.club.conf +++ b/playbooks/roles/nginx/templates/himmel.int.infra.hatecomputers.club/https.git.hatecomputers.club.conf @@ -17,5 +17,8 @@ server { proxy_pass http://127.0.0.1:9966; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; + + client_max_body_size 500M; # docker images can get large :3 + client_body_buffer_size 128k; } }