Skip to content

Commit

Permalink
feet: bagetter setup (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWP authored Jan 15, 2024
1 parent 92e7537 commit e6c695e
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bagetter/CaddyFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
nuget.teknologiumum.com {
reverse_proxy 127.0.0.1:5000 {
transport http {
read_buffer 16KiB
write_buffer 16KiB
compression off
}
}

header {
Server "Teknologi Umum"
Permissions-Policy interest-cohort=()
?Strict-Transport-Security "max-age=604800; includeSubDomains"
?X-Content-Type-Options nosniff
?X-Frame-Options DENY
?Referrer-Policy no-referrer-when-downgrade
?Content-Security-Policy "default-src 'none'; font-src 'self'; script-src 'self' blob:; manifest-src 'self'; media-src 'self' data: blob: about:; style-src 'self' 'unsafe-inline'; base-uri 'none'; img-src 'self' data:; form-action 'self'; frame-ancestors 'none'; connect-src 'self'; worker-src blob:;"
?Vary Origin
?X-XSS-Protection "1; mode=block"
}

tls [email protected]
}
32 changes: 32 additions & 0 deletions bagetter/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
services:
bagetter:
image: bagetter/bagetter:latest
environment:
Mirror__Enabled: true
Mirror__PackageSource: "https://api.nuget.org/v3/index.json"
ApiKey:
PackageDeletionBehavior: "HardDelete"
ports:
- 127.0.0.1:5000:5000
network_mode: host
command: --urls http://127.0.0.1:5000
volumes:
- bagetter-storage:/data
labels:
- "com.centurylinklabs.watchtower.enable=true"
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: unless-stopped
delay: 30s
window: 120s
logging:
driver: local
options:
max-size: 10M
max-file: 3

volumes:
bagetter-storage:
external: true
3 changes: 3 additions & 0 deletions bagetter/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker volume create bagetter-storage

0 comments on commit e6c695e

Please sign in to comment.