init
This commit is contained in:
commit
883f31932e
169 changed files with 5676 additions and 0 deletions
32
scripts/local/setup-hosts.sh
Normal file
32
scripts/local/setup-hosts.sh
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
# Add /etc/hosts entries for VM service domains. Requires root.
|
||||
set -eu
|
||||
|
||||
# Domains on vm-proxy (WG: 10.0.0.1)
|
||||
PROXY_DOMAINS="
|
||||
tiararodney.com
|
||||
chat.tiararodney.com
|
||||
comments.tiararodney.com
|
||||
bugs.code.tiararodney.com
|
||||
dockerhub.oci.code.tiararodney.com
|
||||
ghcr.oci.code.tiararodney.com
|
||||
crates.code.tiararodney.com
|
||||
pypi.code.tiararodney.com
|
||||
"
|
||||
|
||||
# Domains on vm-idp (WG: 10.0.0.2)
|
||||
IDP_DOMAINS="
|
||||
accounts.tiararodney.com
|
||||
"
|
||||
|
||||
for domain in $PROXY_DOMAINS; do
|
||||
grep -q "$domain" /etc/hosts 2>/dev/null && continue
|
||||
echo "10.0.0.1 $domain" >> /etc/hosts
|
||||
echo " added $domain -> 10.0.0.1"
|
||||
done
|
||||
|
||||
for domain in $IDP_DOMAINS; do
|
||||
grep -q "$domain" /etc/hosts 2>/dev/null && continue
|
||||
echo "10.0.0.2 $domain" >> /etc/hosts
|
||||
echo " added $domain -> 10.0.0.2"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue