Quartz sync: Jan 23, 2025, 12:06 PM

This commit is contained in:
ArenaDruid 2025-01-23 12:06:40 +08:00
parent 28b23d4249
commit b3edf333bc
7 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,26 @@
---
title: Nginx proxy manager关于获取ip-ranges.json时卡住的解决方案
draft: false
date: 2025-01-23
---
# 问题描述
Nginx Proxy manager 默认标准情况下启动时会尝试向[ip-ranges.amazonaws.com](https://ip-ranges.amazonaws.com/ip-ranges.json)获取ip-ranges.json。但是可能由于某种未确定的原因导致程序卡在这一步日志如下
[12/3/2021] [12:48:57 AM] [IP Ranges] info Fetching IP Ranges from online services...
[12/3/2021] [12:48:57 AM] [IP Ranges] info Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
没有报错,但是又没有进一步的运行报告,显然是卡在这一步了。
程序虽然没有报错由NPM反向代理的网站也可以正常运行但是NPM的后台无法进入显示*Bad gateway* 报错。
![[Pasted image 20250123114503.png|报错示例]]
*Nginx Proxy Manager报错示例*
# 解决方案
解决方案来自[Github上issue的回复](https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1405#issuecomment-2376713402)
```
NPM_CTR_NAME=nginxproxymanager
docker exec $NPM_CTR_NAME sed -i 's/\.then(internalIpRanges\.fetch)//g' /app/index.js
docker restart $NPM_CTR_NAME
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -12,3 +12,5 @@ Nice to meet you! This is Arena speaking.
我以前在想阿巴拉契亚是个什么样子的形象,但是如今认真思考了阿巴拉契亚的历史缘由和发展之后。我认为阿巴拉契亚只要是和阿瑞纳不一样的形象就足以了,无须拘泥于其设定。
# 随笔
1. [[blog-20230310|在国际妇女节的思考——如何解决女性职场不公问题]]
# 运维记录
1. [[Nginx-Proxy-Manager|Nginx proxy manager关于获取ip-ranges.json时卡住的解决方案]]

View File

@ -2,7 +2,7 @@
title: Authoring Content
---
All of the content in your Quartz should go in the `/content` folder. The content for the home page of your Quartz lives in `content/index.md`. If you've [[index#🪴 Get Started|setup Quartz]] already, this folder should already be initialized. Any Markdown in this folder will get processed by Quartz.
All of the content in your Quartz should go in the `/content` folder. The content for the home page of your Quartz lives in `content/index.md`. If you've [[docs/index#🪴 Get Started|setup Quartz]] already, this folder should already be initialized. Any Markdown in this folder will get processed by Quartz.
It is recommended that you use [Obsidian](https://obsidian.md/) as a way to edit and maintain your Quartz. It comes with a nice editor and graphical interface to preview, edit, and link your local files and attachments.

View File

@ -2,7 +2,7 @@
title: "Building your Quartz"
---
Once you've [[index#🪴 Get Started|initialized]] Quartz, let's see what it looks like locally:
Once you've [[docs/index#🪴 Get Started|initialized]] Quartz, let's see what it looks like locally:
```bash
npx quartz build --serve

View File

@ -2,7 +2,7 @@
title: Setting up your GitHub repository
---
First, make sure you have Quartz [[index#🪴 Get Started|cloned and setup locally]].
First, make sure you have Quartz [[docs/index#🪴 Get Started|cloned and setup locally]].
Then, create a new repository on GitHub.com. Do **not** initialize the new repository with `README`, license, or `gitignore` files.