Configuring private services

Continuing the discussion from How can I remove existing app from public network:

I have read a number of posts describing the configuration for private services, which recommend removing the [[services]] / [[http_service]] sections from fly.toml. However, this section also includes config like min_machines_running, concurrency, etc. Is it possible to add that type of configuration to a private service?

Hey, to remove your app from public view while keeping your service section you simply have to release the public ipv4 and ipv6:

 fly ips release --help
Releases an IP address from the application

Usage:
  flyctl ips release [ADDRESS] [flags]

Flags:
  -a, --app string      Application name
  -c, --config string   Path to application configuration file
  -h, --help            help for release

Global Flags:
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output
1 Like

Oh interesting, thanks! This solution seems to work. I have the private flask service bound to [::] because I was having some trouble binding my it to fly-local-6pn and crashed when starting. Binding to [::] still seems to work without any IPs Fly is performing the health checks I defined in the http_service section and my other apps can still connect, but the fly-provided hostname seems to be unreachable from public internet. Thanks again for the help!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.