Skip to content

Commit 631f3a9

Browse files
authored
Merge branch 'pelican-dev:main' into main
2 parents 138d2a5 + d304c4c commit 631f3a9

File tree

6 files changed

+53
-17
lines changed

6 files changed

+53
-17
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/panel/advanced/docker.mdx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,44 @@ networks:
143143
config:
144144
- subnet: 172.20.0.0/16
145145
```
146+
147+
An example Caddyfile for hosting the panel behind a reverse proxy is shown below. It exposes the panel on port 80 regardless of the Host header, and will not attempt to obtain a TLS certificate. `[UPSTREAM IP]` must be replaced with the IP address of the reverse proxy.
148+
149+
```caddyfile title="Caddyfile"
150+
{
151+
admin off
152+
servers {
153+
trusted_proxies static [UPSTREAM IP]
154+
}
155+
}
156+
157+
:80 {
158+
root * /var/www/html/public
159+
encode gzip
160+
161+
php_fastcgi 127.0.0.1:9000
162+
file_server
163+
}
164+
```
165+
166+
:::info
167+
**Note:** If the trusted directive is not set or improperly configured, file uploads will fail. Commonly, when the reverse proxy is running outside of Docker, the IP address will not match `127.0.0.1`, but will instead match a Docker bridge interface or `docker0`.
168+
:::
169+
170+
#### Raising file upload limits
171+
172+
The default file upload limit is 2MB. To raise this limit, modify the `Caddyfile` file as such:
173+
174+
```caddyfile {6-9} title="Caddyfile"
175+
<domain> {
176+
...
177+
178+
encode gzip
179+
180+
php_fastcgi 127.0.0.1:9000 {
181+
env PHP_VALUE "upload_max_filesize = 256M
182+
post_max_size = 256M"
183+
}
184+
file_server
185+
}
186+
```

docs/panel/update.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Proceeds to download the latest release, extracts to install directory, Sets som
4242
If you do not wish to use the script and wish to do it manually, You can delete everything except the `.env` and the sqlite database file, if using sqlite. then follow the standard update process below.
4343

4444
```sh
45-
sudo bash <(curl -s https://pelican.dev/updatePanel.sh)
45+
sudo bash -c "$(curl -fsSL https://pelican.dev/updatePanel.sh)"
4646
```
4747

4848
</Admonition>
@@ -74,6 +74,12 @@ sudo COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
7474
Even though composer might tell you that you have outdated dependencies, do **not** run `composer update`!
7575
</Admonition>
7676

77+
### Create storage symlinks
78+
79+
```sh
80+
php artisan storage:link
81+
```
82+
7783
### Clear Compiled Template Cache
7884

7985
You'll also want to clear the compiled template cache to ensure that new and modified templates show up correctly for

docusaurus.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const config: Config = {
4848
items: [
4949
{ to: "/docs", label: "Docs", position: "left" },
5050
{ to: "/blog", label: "Blog", position: "left" },
51-
{ to: "/donate", label: "Donate", position: "left" },
51+
{ to: "/support", label: "Support", position: "left" },
5252
{ to: "/faq", label: "FAQ", position: "left" },
5353
{ to: "/hub", label: "Hub", position: "left", target: "_blank", },
5454
{ to: "/eggs", label: "Eggs", position: "left", target: "_blank", },
@@ -119,6 +119,7 @@ const config: Config = {
119119
{ from: '/eggs', to: 'https://pelican-eggs.github.io/pelican' },
120120
{ from: '/github', to: 'https://github.com/pelican-dev/panel' },
121121
{ from: '/hub', to: 'https://hub.pelican.dev' },
122+
{ from: '/donate', to: 'https://pelican.dev/support' },
122123
],
123124
},
124125
],
File renamed without changes.

static/updatePanel.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ echo "Optimizing"
168168
php artisan optimize:clear
169169
php artisan filament:optimize
170170

171+
echo "Creating storage symlinks"
172+
php artisan storage:link
173+
171174
echo "Updating database"
172175
php artisan migrate --seed --force
173176

0 commit comments

Comments
 (0)