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

Unable to change hostname displayed in UI #106

Open
nafmo opened this issue May 20, 2016 · 4 comments
Open

Unable to change hostname displayed in UI #106

nafmo opened this issue May 20, 2016 · 4 comments

Comments

@nafmo
Copy link
Contributor

nafmo commented May 20, 2016

When installing critic on a server, I entered a FQDN that does not resolve. I am trying to change the FQDN to the IP address in /etc/nginx/sites-available/critic-main and in Critic's base.py and auth.py and restart everything, but the FQDN still displays, both for clone URLs in the web UI and in the URLs output when pushing branches for review.

@Tigge
Copy link
Contributor

Tigge commented May 20, 2016

I think I searched everywhere for a place to change this as well. There is an entry in the database as well but I think that isn't used everywhere either.

@jensl
Copy link
Owner

jensl commented May 20, 2016

I'm pretty sure the entry you need to change is the single row in the systemidentities table in the database. There's no UI for doing this, so I'd run sudo -u critic psql (assuming the system user running Critic is named critic) and then update the hostname column.

Something like UPDATE systemidentities SET hostname='critic.example.org'; should do the trick.

Sorry about the inconvenience. The maintenance side of Critic assumes the administrator is perfect and never makes mistakes. ;-)

@Tigge
Copy link
Contributor

Tigge commented May 20, 2016

I was quite sure I changed the database but the emails with review updates still have the wrong hostname. I'll check when I get home.

@nafmo
Copy link
Contributor Author

nafmo commented May 27, 2016

That worked for me (at least for the UI, haven't checked email yet). Perhaps there should be a UI to configure this?

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

No branches or pull requests

3 participants