mirror of
https://github.com/lancachenet/monolithic
synced 2024-11-22 03:53:06 +00:00
Added NGINX metrics endpoint in seperate site
Co-authored-by: William Bergmann Børresen <ninkaninus@users.noreply.github.com>
This commit is contained in:
parent
8392ba6613
commit
8a17ded5c3
2 changed files with 10 additions and 0 deletions
|
@ -36,6 +36,7 @@ RUN rm /etc/nginx/sites-enabled/* /etc/nginx/stream-enabled/* ;\
|
||||||
mkdir -p /etc/nginx/sites-enabled ;\
|
mkdir -p /etc/nginx/sites-enabled ;\
|
||||||
ln -s /etc/nginx/sites-available/10_cache.conf /etc/nginx/sites-enabled/10_generic.conf; \
|
ln -s /etc/nginx/sites-available/10_cache.conf /etc/nginx/sites-enabled/10_generic.conf; \
|
||||||
ln -s /etc/nginx/sites-available/20_upstream.conf /etc/nginx/sites-enabled/20_upstream.conf; \
|
ln -s /etc/nginx/sites-available/20_upstream.conf /etc/nginx/sites-enabled/20_upstream.conf; \
|
||||||
|
ln -s /etc/nginx/sites-available/30_metrics.conf /etc/nginx/sites-enabled/30_metrics.conf; \
|
||||||
ln -s /etc/nginx/stream-available/10_sni.conf /etc/nginx/stream-enabled/10_sni.conf; \
|
ln -s /etc/nginx/stream-available/10_sni.conf /etc/nginx/stream-enabled/10_sni.conf; \
|
||||||
mkdir -m 755 -p /data/cachedomains ;\
|
mkdir -m 755 -p /data/cachedomains ;\
|
||||||
mkdir -m 755 -p /tmp/nginx
|
mkdir -m 755 -p /tmp/nginx
|
||||||
|
|
9
overlay/etc/nginx/sites-available/30_metrics.conf
Normal file
9
overlay/etc/nginx/sites-available/30_metrics.conf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Metrics endpoint
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 8080 reuseport;
|
||||||
|
|
||||||
|
location = /nginx_status {
|
||||||
|
stub_status;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue