Merge pull request #516 from duckfullstop/bug-bind-ipv6

Bind to both IPv6 and IPv4 interfaces by default
This commit is contained in:
Evgenii Burmakin 2024-12-19 12:37:17 +01:00 committed by GitHub
commit 68129f9eae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View file

@ -1 +1 @@
web: bin/rails server -p 3000 -b 0.0.0.0
web: bin/rails server -p 3000 -b ::

View file

@ -1,2 +1,2 @@
prometheus_exporter: bundle exec prometheus_exporter -b 0.0.0.0
web: bin/rails server -p 3000 -b 0.0.0.0
prometheus_exporter: bundle exec prometheus_exporter -b ANY
web: bin/rails server -p 3000 -b ::

View file

@ -49,7 +49,7 @@ if ENV['PROMETHEUS_EXPORTER_ENABLED'].to_s == 'true'
before_fork do
PrometheusExporter::Client.default = PrometheusExporter::Client.new(
host: ENV.fetch('PROMETHEUS_EXPORTER_HOST', '0.0.0.0'),
host: ENV.fetch('PROMETHEUS_EXPORTER_HOST', 'ANY'),
port: ENV.fetch('PROMETHEUS_EXPORTER_PORT', 9394)
)
end

View file

@ -9,6 +9,7 @@
- Working Postgres and Redis instances. In this example Postgres lives in 'db' namespace and Redis in 'redis' namespace.
- Ngingx ingress controller with Letsencrypt integeation.
- This example uses 'example.com' as a domain name, you want to change it to your own.
- This will work on IPv4 and IPv6 Single Stack clusters, as well as Dual Stack deployments.
## Installation
@ -151,7 +152,7 @@ spec:
command:
- "dev-entrypoint.sh"
args:
- "bin/rails server -p 3000 -b 0.0.0.0"
- "bin/rails server -p 3000 -b ::"
resources:
requests:
memory: "1Gi"