Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where should we add in powa-web.conf to change the instance name displaying #170

Open
sajiljosephs opened this issue May 5, 2023 · 3 comments
Assignees

Comments

@sajiljosephs
Copy link

Screenshot from 2023-05-05 11-05-14

Need to change the instance name displayed in powa-web UI. Where should we set up this in conf ?

@rjuju
Copy link
Member

rjuju commented May 5, 2023 via email

@sajiljosephs
Copy link
Author

otherwise I could add a new configuration field, like local_server_name, in
the powa-web.conf file >> This should do it.

@rjuju rjuju self-assigned this May 5, 2023
@rjuju
Copy link
Member

rjuju commented May 7, 2023

Looking at implementing it, I remembered that the local server is displayed as the connection info configured in the config file in the breadcrumb, using declared host/IP:port. Using that everywhere rather than adding an alias may be a better option. So if you configure e.g.

servers={
  'myserver': {
    'host': 'production-pg',
    'port': 5432,
    [...]
  },
  'myotherserver': {
    [...]
  },
  [...]
}

you would get production-pg:5432 rather than <local> everywhere.

The problem with a new configuration option is that you can declare multiple servers in the config file, so a single alias would not work.

If you really want an alias rather than the host : port, maybe an option to display the server alias in the config file rather than the undelrying host and port would work? With the above example it would display myserver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants