|
| 1 | +import Admonition from '@theme/Admonition'; |
| 2 | +import Tabs from '@theme/Tabs'; |
| 3 | +import TabItem from '@theme/TabItem'; |
| 4 | + |
| 5 | +# Change Panel Domain |
| 6 | + |
| 7 | +## Webserver & Panel |
| 8 | + |
| 9 | +First you need to modify the server name in your web server config. |
| 10 | + |
| 11 | +<Tabs groupId="webserver"> |
| 12 | + <TabItem value="nginx" label="Nginx"> |
| 13 | + ```sh |
| 14 | + sudo nano /etc/nginx/sites-available/pelican.conf |
| 15 | + # Search for "server_name" |
| 16 | + ``` |
| 17 | + |
| 18 | + <Admonition type="info" title="Using HTTPS?"> |
| 19 | + If you're using HTTPS, remember to also change the SSL paths in the config file to match your new domain and [generate a new certificate](./ssl). |
| 20 | + </Admonition> |
| 21 | + </TabItem> |
| 22 | + <TabItem value="apache" label="Apache"> |
| 23 | + ```sh |
| 24 | + sudo nano /etc/apache2/sites-available/pelican.conf |
| 25 | + # Search for "ServerName" |
| 26 | + ``` |
| 27 | + |
| 28 | + <Admonition type="info" title="Using HTTPS?"> |
| 29 | + If you're using HTTPS, remember to also change the SSL paths in the config file to match your new domain and [generate a new certificate](./ssl). |
| 30 | + </Admonition> |
| 31 | + </TabItem> |
| 32 | + <TabItem value="caddy" label="Caddy"> |
| 33 | + ```sh |
| 34 | + sudo nano /etc/caddy/Caddyfile |
| 35 | + ``` |
| 36 | + </TabItem> |
| 37 | +</Tabs> |
| 38 | + |
| 39 | +Next, modify the `APP_URL` in the `.env` file located at `/var/www/pelican` by typing `sudo nano /var/www/pelican/.env`. |
| 40 | + |
| 41 | +Finally, restart your webserver to apply the changes. |
| 42 | + |
| 43 | +<Tabs groupId="webserver"> |
| 44 | + <TabItem value="nginx" label="Nginx"> |
| 45 | + ```sh |
| 46 | + sudo systemctl restart nginx |
| 47 | + ``` |
| 48 | + </TabItem> |
| 49 | + <TabItem value="apache" label="Apache"> |
| 50 | + ```sh |
| 51 | + sudo systemctl restart apache2 |
| 52 | + ``` |
| 53 | + </TabItem> |
| 54 | + <TabItem value="caddy" label="Caddy"> |
| 55 | + ```sh |
| 56 | + sudo systemctl restart caddy |
| 57 | + ``` |
| 58 | + </TabItem> |
| 59 | +</Tabs> |
| 60 | + |
| 61 | +## Nodes |
| 62 | + |
| 63 | +The wings config file for each node must be updated to match the new Panel URL. (`remote` field) |
| 64 | + |
| 65 | +You can do it manually in the `config.yml` file located at `/etc/pelican` or overwrite it completely by copying it from the Panel. |
| 66 | + |
| 67 | +Make sure to restart wings (`sudo systemctl restart wings`) after updating the wings config file. |
0 commit comments