From d16df3274474e163fecb6923d91a88e04d1cd185 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Tue, 8 Jul 2025 10:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 00-db/mysql-init/03-init-gitea-user.sql | 2 ++ nginx.conf | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/00-db/mysql-init/03-init-gitea-user.sql b/00-db/mysql-init/03-init-gitea-user.sql index cae2209..8d8ee08 100644 --- a/00-db/mysql-init/03-init-gitea-user.sql +++ b/00-db/mysql-init/03-init-gitea-user.sql @@ -133,4 +133,6 @@ CREATE TABLE `action_runner_token` ( -- ---------------------------- INSERT INTO `action_runner_token` (`id`, `token`, `owner_id`, `repo_id`, `is_active`, `created`, `updated`, `deleted`) VALUES (1, 'XPnJXquS0rhGhK99t2HAfCQAcH200uZLmgWRFwag', 0, 0, 1, 1712643257, 1720771549, NULL); +INSERT INTO `webhook` (`repo_id`, `owner_id`, `is_system_webhook`, `url`, `http_method`, `content_type`, `secret`, `events`, `is_active`, `type`, `meta`, `last_status`, `header_authorization_encrypted`, `created_unix`, `updated_unix`) VALUES ( 0, 0, 1, 'http://172.20.32.202:4000/commit_logs?token=7917908927b6f1b792f2027a08a8b24a2de42c1692c2fd45da0dee5cf90a5af5', 'POST', 1, '', '{\"push_only\":true,\"send_everything\":false,\"choose_events\":false,\"branch_filter\":\"*\",\"events\":{\"create\":false,\"delete\":false,\"fork\":false,\"issues\":false,\"issue_assign\":false,\"issue_label\":false,\"issue_milestone\":false,\"issue_comment\":false,\"push\":false,\"pull_request\":false,\"pull_request_assign\":false,\"pull_request_label\":false,\"pull_request_milestone\":false,\"pull_request_comment\":false,\"pull_request_review\":false,\"pull_request_sync\":false,\"pull_request_review_request\":false,\"wiki\":false,\"repository\":false,\"release\":false,\"package\":false}}', 1, 'gitea', '', 1, '', 1748567905, 1751337083); + SET FOREIGN_KEY_CHECKS = 1; diff --git a/nginx.conf b/nginx.conf index 856c5c4..d0e56c3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,5 @@ user nginx; -worker_processes auto; +worker_processes 8; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; @@ -33,6 +33,14 @@ http { server { listen 4000; location / { + proxy_buffering on; + proxy_buffer_size 128k; + proxy_buffers 8 1m; + proxy_busy_buffers_size 2m; + proxy_temp_file_write_size 2m; + proxy_connect_timeout 600; + proxy_read_timeout 600; + proxy_send_timeout 600; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr;