Skip to content

Commit 28f565a

Browse files
authored
Add guide on how to change the panel domain (#149)
* add guide on how to change the panel domain * fix link
1 parent 9427ece commit 28f565a

File tree

2 files changed

+87
-8
lines changed

2 files changed

+87
-8
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.

sidebars.ts

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
1+
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
22

33
/**
44
* Creating a sidebar enables you to:
@@ -11,7 +11,6 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
1111
Create as many sidebars as you want.
1212
*/
1313
const sidebars: SidebarsConfig = {
14-
1514
Sidebar: [
1615
'welcome',
1716
{
@@ -28,23 +27,36 @@ const sidebars: SidebarsConfig = {
2827
type: 'category',
2928
label: 'Advanced',
3029
items: [
31-
'panel/advanced/redis',
32-
'panel/advanced/mysql',
33-
'panel/advanced/artisan',
34-
'panel/advanced/docker',
30+
'panel/advanced/redis',
31+
'panel/advanced/mysql',
32+
'panel/advanced/artisan',
33+
'panel/advanced/docker',
3534
]
3635
}
3736
],
3837
},
3938
{
4039
type: 'category',
4140
label: 'Wings',
42-
items: ['wings/install','wings/optional-config', 'wings/update'],
41+
items: [
42+
'wings/install',
43+
'wings/optional-config',
44+
'wings/update'
45+
],
4346
},
4447
{
4548
type: 'category',
4649
label: 'Guides',
47-
items: ['guides/docker', 'guides/mounts', 'guides/ssl', 'guides/php-upgrade', 'guides/database-hosts', 'guides/uninstalling', 'guides/easypanel',],
50+
items: [
51+
'guides/docker',
52+
'guides/mounts',
53+
'guides/ssl',
54+
'guides/php-upgrade',
55+
'guides/database-hosts',
56+
'guides/change-panel-domain',
57+
'guides/uninstalling',
58+
'guides/easypanel',
59+
],
4860
},
4961
'troubleshooting',
5062
'comparison',

0 commit comments

Comments
 (0)