From c9ce0ae73708bc96a8987b361e256015899bf6da Mon Sep 17 00:00:00 2001 From: tuska298 Date: Mon, 26 Aug 2024 00:35:59 +0900 Subject: [PATCH] vault backup: 2024-08-26 00:35:59 --- .obsidian/workspace.json | 22 +++++++++---------- Home Server/Gitea.md | 17 +++++++++++++- .../Network/nginx for reverse proxy.md | 2 +- 3 files changed, 28 insertions(+), 13 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 05d963f..1dbe4de 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -11,11 +11,10 @@ "id": "b441e35062a39cb4", "type": "leaf", "state": { - "type": "markdown", + "type": "diff-view", "state": { - "file": "Home Server/Network/DNS/Domain.md", - "mode": "source", - "source": true + "file": "Home Server/Network/nginx for reverse proxy.md", + "staged": false } }, "group": "d1fb0956c6dbe2c1" @@ -30,10 +29,11 @@ "id": "91fb38d5658db1d5", "type": "leaf", "state": { - "type": "diff-view", + "type": "markdown", "state": { - "file": ".obsidian/workspace.json", - "staged": false + "file": "Home Server/Gitea.md", + "mode": "preview", + "source": true } }, "group": "d1fb0956c6dbe2c1" @@ -169,17 +169,17 @@ "command-palette:명령어 팔레트 열기": false } }, - "active": "91fb38d5658db1d5", + "active": "b441e35062a39cb4", "lastOpenFiles": [ - "Home Server/Network/DNS/Domain.md", + "Home Server/Gitea.md", "Home Server/Network/nginx for reverse proxy.md", + "Home Server/docker compose - temp.md", + "Home Server/Network/DNS/Domain.md", "linux/Network Interfaces.md", "linux/network stat.md", "Home Server/Network/DNS/DNS.md", "Home Server/Network/DNS/CoreDNS.md", - "Home Server/Gitea.md", "linux/dig.md", - "Home Server/docker compose - temp.md", "Home Server/Network/DNS", "Home Server/Network", "linux/RAID.md", diff --git a/Home Server/Gitea.md b/Home Server/Gitea.md index cb5b63f..521e1cf 100644 --- a/Home Server/Gitea.md +++ b/Home Server/Gitea.md @@ -53,7 +53,22 @@ service: ``` ## Reverse Proxy -/nginx/conf.d/locations/gitea.conf 파일 수정 + +### /nginx/nginx.conf +size 제한으로 인해 push에 실패할 수 있는 현상을 수정하기 위해 제한을 없앰 + +```nginx +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + client_max_body_size 0; + + ... +} +``` + +### /nginx/conf.d/gitea.conf + ```nginx location /git { proxy_set_header Connection $http_connection; diff --git a/Home Server/Network/nginx for reverse proxy.md b/Home Server/Network/nginx for reverse proxy.md index 925685b..261ca33 100644 --- a/Home Server/Network/nginx for reverse proxy.md +++ b/Home Server/Network/nginx for reverse proxy.md @@ -88,5 +88,5 @@ server { ## reload ```shell -docker exec -it webserver4 nginx -s reload +docker exec -it nginx-reverse-proxy nginx -s reload ``` \ No newline at end of file