flant / ovpn-admin

Simple web UI to manage OpenVPN users.
Apache License 2.0
1.39k stars 261 forks source link

Display metrics, I set the following variable in compose.yml, but the Web access is 404 #110

Closed 3721518 closed 2 years ago

3721518 commented 2 years ago

export metrics

When I visited the following link, he prompted me 404 Not found http://192.168.10.1:8080/metrics

eatrisno commented 2 years ago

if you're using docker try your localhost ip

127.0.0.1:8080/metrics

3721518 commented 2 years ago

if you're using docker try your localhost ip

127.0.0.1:8080/metrics

I did what you said, configured it and tried it, but it didn't work Reference url:https://github.com/flant/ovpn-admin/blob/master/docker-compose.yaml

3721518 commented 2 years ago

I solved the problem!!! So,I used nginx to forward port 8080 traffic to 80,please see the screenshot

image