Usando Caddy
- Maquina Host
- Docker
Se você instalou o painel diretamente em /var/www/jexactyl com PHP 8.4, edite /etc/caddy/Caddyfile e substitua <domain> pelo seu domínio ou IP:
- Com SSL
- Sem SSL
# Substitua o <domain> pelo nome do seu dominio ou seu IP
{
servers :443 {
timeouts {
read_body 120s
}
}
}
<domain> {
root * /var/www/jexactyl/public
file_server
php_fastcgi unix//run/php/php8.4-fpm.sock {
root /var/www/jexactyl/public
index index.php
env PHP_VALUE "upload_max_filesize = 100M
post_max_size = 100M"
env HTTP_PROXY ""
env HTTPS "on"
read_timeout 300s
dial_timeout 300s
write_timeout 300s
}
header Strict-Transport-Security "max-age=16768000; preload;"
header X-Content-Type-Options "nosniff"
header X-XSS-Protection "1; mode=block;"
header X-Robots-Tag "none"
header Content-Security-Policy "frame-ancestors 'self'"
header X-Frame-Options "DENY"
header Referrer-Policy "same-origin"
request_body {
max_size 100m
}
respond /.ht* 403
log {
output file /var/log/caddy/jexactyl.log {
roll_size 100MiB
roll_keep_for 7d
}
level INFO
}
}
# Substitua o <domain> pelo nome do seu dominio ou seu IP
{
servers :80 {
timeouts {
read_body 120s
}
}
}
<domain>:80 {
root * /var/www/jexactyl/public
file_server
php_fastcgi unix//run/php/php8.4-fpm.sock {
root /var/www/jexactyl/public
index index.php
env PHP_VALUE "upload_max_filesize = 100M
post_max_size = 100M"
env HTTP_PROXY ""
# env HTTPS "on" # IMPORTANT: this is commented out, to disable HTTPS
read_timeout 300s
dial_timeout 300s
write_timeout 300s
}
header Strict-Transport-Security "max-age=16768000; preload;"
header X-Content-Type-Options "nosniff"
header X-XSS-Protection "1; mode=block;"
header X-Robots-Tag "none"
header Content-Security-Policy "frame-ancestors 'self'"
header X-Frame-Options "DENY"
header Referrer-Policy "same-origin"
request_body {
max_size 100m
}
respond /.ht* 403
log {
output file /var/log/caddy/jexactyl.log {
roll_size 100MiB
roll_keep_for 7d
}
level INFO
}
}
sudo systemctl reload caddy
Se você subiu o painel via Docker com PANEL_PORT=127.0.0.1:8085 e TRUSTED_PROXIES=*, adicione ao seu /etc/caddy/Caddyfile:
- Com SSL Automático
- Sem SSL
# Proxy Reverso Caddy para o container Docker (127.0.0.1:8085) — Com SSL Automático
# Substitua <domain> pelo seu domínio
<domain> {
request_body {
max_size 100MB
}
reverse_proxy 127.0.0.1:8085
}
# Proxy Reverso Caddy para o container Docker (127.0.0.1:8085) — Sem SSL
# Substitua <domain> pelo seu domínio ou IP
http://<domain> {
request_body {
max_size 100MB
}
reverse_proxy 127.0.0.1:8085
}
sudo systemctl reload caddy