« FeministWiki:Server setup » : différence entre les versions

aucun résumé des modifications
Aucun résumé des modifications
Ligne 98 : Ligne 98 :


The decryption script will prompt you for a password the first time it's used.  Enter the password stored in <code>/root/pwd/meta</code> on the old server.
The decryption script will prompt you for a password the first time it's used.  Enter the password stored in <code>/root/pwd/meta</code> on the old server.
=== Create vmail user ===
groupadd -g 5000 vmail
useradd -u 5000 -g vmail -s /usr/sbin/nologin -d /home/vmail -m vmail


=== Put config files in place ===
=== Put config files in place ===
Ligne 105 : Ligne 110 :
There's one special thing to remember, which is that after copying in the new <code>/etc/aliases</code> file, you have to run the <code>newaliases</code> command for the changes to take effect.
There's one special thing to remember, which is that after copying in the new <code>/etc/aliases</code> file, you have to run the <code>newaliases</code> command for the changes to take effect.


=== Create vmail user ===
=== Make feministwiki.dev point to the new server ===


groupadd -g 5000 vmail
This is a good time to change the DNS record for feministwiki.dev to point to the new IP address.
useradd -u 5000 -g vmail -s /usr/sbin/nologin -d /home/vmail -m vmail


=== Initialize LetsEncrypt ===
=== Initialize LetsEncrypt ===
Ligne 168 : Ligne 172 :
  do ufw allow proto tcp to 0.0.0.0/0 port $port
  do ufw allow proto tcp to 0.0.0.0/0 port $port
  done
  done
At this point you might want to do some testing with the '''feministwiki.dev''' domain.


=== Reboot ===
=== Reboot ===
Ligne 176 : Ligne 178 :


  reboot
  reboot
After that, you might want to do some testing with the '''feministwiki.dev''' domain.


=== Update DNS entries ===
=== Update DNS entries ===