update beszel configuration
Deploy beszel / deploy (push) Successful in 5s
Deploy nginx / deploy (push) Successful in 3s

This commit is contained in:
2026-04-07 21:07:56 -04:00
parent 54d6c03bd1
commit 79996d02a4
2 changed files with 39 additions and 3 deletions
+7 -3
View File
@@ -3,13 +3,17 @@ services:
image: henrygd/beszel
container_name: beszel
restart: unless-stopped
ports:
- 8090:8090
environment:
- APP_URL=http://localhost:8090
- APP_URL=https://beszel.hantim.net
volumes:
- ./beszel_data:/beszel_data
- ./beszel_socket:/beszel_socket
networks:
- shared
networks:
shared:
external: true
# beszel-agent:
# image: henrygd/beszel-agent:latest
@@ -0,0 +1,32 @@
server {
listen 80;
listen [::]:80;
server_name beszel.hantim.net;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://beszel.hantim.net$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name beszel.hantim.net;
ssl_certificate /etc/letsencrypt/live/beszel.hantim.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/beszel.hantim.net/privkey.pem;
include /etc/nginx/conf.d/security-headers.inc;
location / {
proxy_pass http://beszel:8090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}