Restrict gitea resources, add local+public route for copyparty

This commit is contained in:
MSWS
2025-11-29 03:36:53 -08:00
parent 412dc6ec60
commit fd7eaf35e5
5 changed files with 16 additions and 12 deletions

View File

@@ -44,8 +44,10 @@ yt.local.msws.xyz, yt.msws.xyz {
reverse_proxy invidious:3000 reverse_proxy invidious:3000
} }
files.msws.xyz { files.local.msws.xyz {
reverse_proxy copyparty:3923 reverse_proxy copyparty:3923 {
header_up CF-CONNECTING-IP 10.0.0.140
}
} }
#*.code.msws.xyz { #*.code.msws.xyz {

View File

@@ -20,7 +20,6 @@ services:
- CADDY_ADMIN=caddy-caddy-1:2019 - CADDY_ADMIN=caddy-caddy-1:2019
networks: networks:
- cloudflared - cloudflared
- copyparty
volumes: volumes:
caddy_data: caddy_data:
@@ -29,5 +28,3 @@ volumes:
networks: networks:
cloudflared: cloudflared:
external: true external: true
copyparty:
external: true

View File

@@ -10,13 +10,13 @@ services:
- cloudflared - cloudflared
labels: labels:
- "com.centurylinklabs.watchtower.enable=false" - "com.centurylinklabs.watchtower.enable=false"
cloudflared-internal: cloudflared-ssh-infra:
image: cloudflare/cloudflared:latest image: cloudflare/cloudflared:latest
container_name: cf-tunnel-internal container_name: cf-tunnel-ssh-infra
restart: always restart: always
command: tunnel run command: tunnel run
environment: environment:
TUNNEL_TOKEN: "${PRIVATE_TUNNEL_TOKEN}" TUNNEL_TOKEN: "${SSH_INFRA_TUNNEL_TOKEN}"
network_mode: "host" network_mode: "host"
labels: labels:
- "com.centurylinklabs.watchtower.enable=false" - "com.centurylinklabs.watchtower.enable=false"

View File

@@ -3,10 +3,11 @@ services:
image: copyparty/ac:latest image: copyparty/ac:latest
container_name: copyparty container_name: copyparty
user: "1000:1000" user: "1000:1000"
restart: always
volumes: volumes:
- ${PWD}/cfg:/cfg:z - ${PWD}/cfg:/cfg:z
- ${PWD}/data/public:/public:z - /mnt/samsung/copyparty/public:/public:z
- ${PWD}/data/private:/private:z - /mnt/samsung/copyparty/private:/private:z
environment: environment:
LD_PRELOAD: /usr/lib/libmimalloc-secure.so.2 LD_PRELOAD: /usr/lib/libmimalloc-secure.so.2
@@ -24,8 +25,8 @@ services:
retries: 5 retries: 5
start_period: 15s start_period: 15s
networks: networks:
- copyparty - cloudflared
networks: networks:
copyparty: cloudflared:
external: true external: true

View File

@@ -47,6 +47,10 @@ services:
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 10s start_period: 10s
deploy:
resources:
limits:
cpus: "1"
runner: runner:
image: gitea/act_runner:nightly image: gitea/act_runner:nightly