Repo to quickly host redlib on Azure Container Instances with Azure Storage Files.
Originally, we hosted libreddit, we have migrated to the forked version: redlib.
- update
<dnsNameLabel>.<azure region>
inCaddyfile
. - run
certs.sh
to generate client side certificate.- alternatively, use
cfssl/certs.sh
to generate certificates withcfssl
- alternatively, use
- update
AZURE_GROUP_NAME
inrun.sh
andazure-storage-create.sh
. - update
LOCATION
inazure-storage-create.sh
. - update
<azure region>
insetup.yaml
. - apply other desired settings in
setup.yaml
az login --use-device-code --tenant <yourdiretory.onmicrosoft.com>
# upload Caddyfile to Azure Storage Files
# this script will print `storageAccountName` and `storageAccountKey`
./azure-storage-create.sh
# update `storageAccountName` and `storageAccountKey` in `setup.yaml`
# deploy container instance
./run.sh
We can also use base64-encode configuration files in the mounted volumes. Simply
remove the comments in setup.yaml
and replace with the base64 strings.
User certs are stored in ~/.pki/nssdb
.
certutil -d sql:$HOME/.pki/nssdb -L