diff options
| author | 2026-10-22 20:23:48 +0000 | |
|---|---|---|
| committer | 2026-10-22 20:23:48 +0000 | |
| commit | bdbdec2d56a9db989328394b3c828f5f0239b8b0 (patch) | |
| tree | 275a77b5d67bb943abaa1ef2c71596da78cd1ee6 /roles/personal | |
| parent | feat: add acme_client (diff) | |
| download | infra-bdbdec2d56a9db989328394b3c828f5f0239b8b0.tar.gz | |
feat: add monit
Diffstat (limited to 'roles/personal')
| -rw-r--r-- | roles/personal/templates/nginx.conf.j2 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/personal/templates/nginx.conf.j2 b/roles/personal/templates/nginx.conf.j2 index fdb869b..6b2d05a 100644 --- a/roles/personal/templates/nginx.conf.j2 +++ b/roles/personal/templates/nginx.conf.j2 | |||
| @@ -49,6 +49,17 @@ server { | |||
| 49 | location = /private/status { | 49 | location = /private/status { |
| 50 | stub_status; | 50 | stub_status; |
| 51 | } | 51 | } |
| 52 | |||
| 53 | location = /private/monit { | ||
| 54 | return 301 $scheme://$http_host/private/monit/; | ||
| 55 | } | ||
| 56 | location /private/monit/ { | ||
| 57 | proxy_pass http://127.0.0.1:2812/; | ||
| 58 | proxy_set_header Host $http_host; | ||
| 59 | proxy_set_header X-Real-IP $remote_addr; | ||
| 60 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| 61 | proxy_set_header X-Forwarded-Proto $scheme; | ||
| 62 | } | ||
| 52 | } | 63 | } |
| 53 | 64 | ||
| 54 | location /files/ { | 65 | location /files/ { |
