12 lines
455 B
Plaintext
12 lines
455 B
Plaintext
%
|
|
@ #ip_address
|
|
@ http://172.30.27.1:9090/
|
|
%
|
|
@ #service
|
|
@ prometheus
|
|
%
|
|
@ #ADDITIONAL_REPLACE
|
|
@ template = template.replace("proxy_set_header Host $host;", "proxy_set_header Host $host;\nproxy_set_header Upgrade $http_upgrade;\nproxy_set_header Connection \"upgrade\";")
|
|
%
|
|
@ #START_CONTAINER
|
|
@ os.system("mkdir -p /opt/prometheus/data && touch /opt/prometheus/prometheus.yaml && touch /opt/prometheus/web.yaml && chown -R nobody:nogroup /opt/prometheus/") |