This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
- Loading branch information
1 parent
d3d69b5
commit c820ed6
Showing
12 changed files
with
148 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Docker Aptly | ||
|
||
```bash | ||
|
||
# Start the way you want | ||
docker run -d \ | ||
--cap-drop ALL \ | ||
--read-only \ | ||
dubodubonduponey/aptly | ||
|
||
# Trust Debian keys | ||
docker exec -ti apt-mirror /boot/entrypoint.sh trust keys.gnupg.net 04EE7237B7D453EC 648ACFD622F3D138 EF0F382A1A7B6500 DCC9EFBF77E11517 AA8E81B4331F7F50 112695A0E562B32A | ||
|
||
# Generate your signing key | ||
docker exec -ti apt-mirror /boot/entrypoint.sh init "Dubo Dubon Duponey" dubodubonduponey@jsboot.space | ||
|
||
# Create new mirrors | ||
docker exec -ti apt-mirror /boot/entrypoint.sh aptly mirror create my-buster-mirror http://deb.debian.org/debian buster main contrib non-free | ||
docker exec -ti apt-mirror /boot/entrypoint.sh aptly mirror create my-buster-updates-mirror http://deb.debian.org/debian buster-updates main contrib non-free | ||
docker exec -ti apt-mirror /boot/entrypoint.sh aptly mirror create my-buster-security-mirror http://security.debian.org/debian-security buster/updates main contrib non-free | ||
|
||
# Force a first refresh of all mirrors | ||
docker exec -ti apt-mirror /boot/entrypoint.sh refresh | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,40 @@ | ||
http://:{$PORT} { | ||
basicauth / {$USERNAME} {$PASSWORD} | ||
@proxy { | ||
header Proxy-Authorization Basic* | ||
} | ||
|
||
@noproxy { | ||
not { | ||
header Proxy-Authorization Basic* | ||
} | ||
} | ||
|
||
log / /dev/stdout "{hostonly} {combined}" | ||
errors /dev/stderr | ||
request_header @proxy Authorization {http.request.header.Proxy-Authorization} | ||
request_header @proxy -Proxy-Authorization | ||
|
||
log { | ||
output stdout | ||
format json | ||
level {$LOG_LEVEL} | ||
} | ||
|
||
header / { | ||
header { | ||
X-Xss-Protection "1; mode=block" | ||
X-Content-Type-Options "nosniff" | ||
X-Frame-Options "DENY" | ||
Referrer-Policy "strict-origin-when-cross-origin" | ||
} | ||
|
||
root /data/aptly/public | ||
browse | ||
reverse_proxy @proxy http://127.0.0.1:{$PORT} | ||
|
||
basicauth @noproxy bcrypt "{$REALM}" { | ||
{$USERNAME} {$PASSWORD} | ||
} | ||
|
||
file_server @noproxy browse { | ||
root /data/aptly/public | ||
# hide <files...> | ||
# index <filenames...> | ||
# browse [<template_file>] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Healthcheck | ||
http://127.0.0.1:10042 { | ||
respond 200 { | ||
body {} | ||
close | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters