Skip to content

Commit b7a6775

Browse files
committed
rm: unwanted headers, rm: volume bind option
1 parent 2bac49e commit b7a6775

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

admin-dashboard/rootfs/defaults/dashboard.conf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ charset utf8;
99

1010
client_max_body_size 0;
1111

12-
# Security headers
13-
add_header X-Content-Type-Options nosniff;
14-
add_header X-XSS-Protection "1; mode=block";
15-
add_header X-Frame-Options DENY;
16-
1712
location ~ ^/(.well-known)/(.*)$ {
1813
alias /usr/src/dashboard/$1/$2;
1914
}
@@ -42,10 +37,5 @@ limit_req zone=api burst={{ $RATE_LIMIT_BURST }} nodelay;
4237
{{ end }}
4338

4439
location / {
45-
proxy_set_header Host $host;
46-
proxy_set_header X-Real-IP $remote_addr;
47-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
48-
proxy_set_header X-Forwarded-Proto $scheme;
49-
5040
proxy_pass http://dashboard:{{ $DASHBOARD_PORT }};
5141
}

docker-compose.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ services:
44
restart: ${RESTART_POLICY:-unless-stopped}
55
volumes:
66
- ${CONFIG}/relayer/data:/data:Z
7-
- ${CONFIG}/relayer/home:/home/${RELAYER_USER:-relayer}:Z
8-
- ${CONFIG_PATH:-./config.yaml}:/home/${RELAYER_USER:-relayer}/config.yaml:Z
9-
- relay-socket:${SOCKET_DIR:-/var/run/relayer}:Z
7+
- ${CONFIG}/relayer/home:/home/${RELAYER_USER:-relayer}
8+
- ${CONFIG_PATH:-./config.yaml}:/home/${RELAYER_USER:-relayer}/config.yaml
9+
- relay-socket:${SOCKET_DIR:-/var/run/relayer}
1010
labels:
1111
service: "centralized-relay"
1212
healthcheck:
@@ -29,11 +29,11 @@ services:
2929
- "${HTTPS_PORT:-443}:443"
3030
- "${DASHBOARD_PORT:-3000}"
3131
volumes:
32-
- ${CONFIG}/web:/config:Z
33-
- ${CONFIG}/web/crontabs:/var/spool/cron/crontabs:Z
34-
- ${CONFIG}/dashboard/cache:/usr/share/dashboard/.next/cache:Z
35-
- ${CONFIG}/dashboard/data:/data:Z
36-
- relay-socket:${SOCKET_DIR:-/var/run/relayer}:Z
32+
- ${CONFIG}/web:/config
33+
- ${CONFIG}/web/crontabs:/var/spool/cron/crontabs
34+
- ${CONFIG}/dashboard/cache:/usr/share/dashboard/.next/cache
35+
- ${CONFIG}/dashboard/data:/data
36+
- relay-socket:${SOCKET_DIR:-/var/run/relayer}
3737
- /proc:/host/proc:ro
3838
- /sys:/host/sys:ro
3939
healthcheck:

0 commit comments

Comments
 (0)