update beszel configuration
This commit is contained in:
@@ -3,13 +3,17 @@ services:
|
|||||||
image: henrygd/beszel
|
image: henrygd/beszel
|
||||||
container_name: beszel
|
container_name: beszel
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- 8090:8090
|
|
||||||
environment:
|
environment:
|
||||||
- APP_URL=http://localhost:8090
|
- APP_URL=https://beszel.hantim.net
|
||||||
volumes:
|
volumes:
|
||||||
- ./beszel_data:/beszel_data
|
- ./beszel_data:/beszel_data
|
||||||
- ./beszel_socket:/beszel_socket
|
- ./beszel_socket:/beszel_socket
|
||||||
|
networks:
|
||||||
|
- shared
|
||||||
|
|
||||||
|
networks:
|
||||||
|
shared:
|
||||||
|
external: true
|
||||||
|
|
||||||
# beszel-agent:
|
# beszel-agent:
|
||||||
# image: henrygd/beszel-agent:latest
|
# 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user