Hey. Installed Forem on digitalocean, everything works fine. I installed it on a test domain to test and understand how it works.
How can I change the Forem domain to another after all the settings? And how can I generate an ssl certificate for a new domain?
Thank you!
Top comments (27)
Hey @varhal - nice one on getting your Forem installed and working fine!
When you say you installed it on a test domain, do you also mean that you set that domain as forem_domain_name in your
inventory/forem/setup.yml
?I'll try to do that, thank you
Oh, it was more of a question than an answer!
I was asking whether you already set the test domain as your forem_domain_name in your setup.yml file during the self-host process.
Yes, i set text domain as forem_domain_name in file inventory/forem/setup.yml
Thanks for clarifying!
If you want to change your domain from the test domain to your permanent domain, you need to change the forem_domain_name in your
setup.yml
file, and then return to the Self-Host installation instructions beginning at Step 7 where you'll rerun the Playbook for DigitalOcean install.Don't forget to set up the DNS for your new domain, and restart the Forem Traefik service (
sudo systemctl restart forem-traefik.service
), too!If i restart the playbook, a new image will be created. After creating a new image, settings, content and this data will not be lost?
If you want to keep your Test Forem, but turn it into your Real Forem? Then you may want to follow these directions to make the server-side change.
If you're not comfortable making those changes to the server then your best bet is to create a new Forem by running the playbook again.
After entering the commands from the tutorial, an input field is displayed on the command line, should I write a new domain here? If so, in what format?
Hey @ellativity !
Maybe there is a more detailed instruction on how to log in as root to the server and run the command to change the domain?
I think many will be useful, thanks
Hey @varhal , as this is a question regarding Forem self-host, the instructions here are provided on the assumption that you've already figured out how to log into your server as root, based on the information provided in the Self-Host set up guide.
The instructions @jdoss provided in the issue, combined with the SSH examples in the Self-Host repo, detail exactly what it is you have to do.
Hey @ellativity , I read these instructions, the problem is that it is not authorized as root
ssh -i ~/.ssh/forem root@104.138.6.116
or
ssh -i /root/.ssh/forem root@104.138.6.116
Rusult
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Tried creating new keys and more, nothing helped
Hey @varhal , these are familiar errors. Let's see if we can figure out how to get past them:
@andygeorge has suggested in the past that
Using
-k
for Linux or-K
for macOS.Can you give that a try and see how it goes for you? Just to confirm, you should be using the key that you created under Step 5 of the Manual Installation before you run your playbook to create your instance.
I deleted Fedora CoreOS image from digitalocean and destroy droplet. Then I used the command on linux:
ssh-add -k ~/.ssh/forem
Result:
Identity added: /root/.ssh/forem
Then I started the playbook and created an instance. I tried to log in as root:
ssh -i ~/.ssh/forem root@143.198.19.221
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
The problem was not solved
Can you try logging in as
core
and see what happens?Also, if you destroyed your Droplet you could reconfigure your Forem with your chosen URL before rerunning the playbook.
That's one way around this issue, for now π
The authorization is successful under the core user.
I have a large wordpress site. I want to migrate from wordpress to forem. But first, I need to create a website on forem, transfer all the information, make the necessary settings, and only then change the domain to the main one.
Ah, I see! Thanks for clarifying.
And thanks for confirming that
core
works for you βΊοΈI understand that there is no solution to this problem yet? Maybe I can log into the site using the ip, not the domain? Or, for example, bypass the system by binding another domain (by editing DNS records). There must be another way out)
Sorry, @varhal , I understood that you had successfully logged in as
core
?Yes, i authorization is successful under the core user. But need under root user
I haven't tried these instructions for myself but I'm curious if you already tried to SSH using
core
instead ofroot
and thensu - root
?Please remember that Forem Self-host is intended to be self-administrated, so while we will assist you to use Forem we don't provide instructions on how to use Linux:
Thanks for the answer. I have experience using the terminal on linux. What password should I enter when using the command
su
? Doesn't accept passwordsI seem to understand how it works, thank you. I will write instructions for other users on how to change the domain if everything works out
You've got it? Hope this works out!
Hey @ellativity !
Domain change succeeded! After changing the domain, all images in articles and avatars were no longer displayed, since they refer to the old domain. Could you help me with this?
The question is open!