mirror of
https://github.com/MSWS/Homelab.git
synced 2025-12-05 23:00:24 -08:00
Restrict gitea resources, add local+public route for copyparty
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user