update: change reverse proxy URLs to use localhost instead of account names

This commit is contained in:
2026-03-24 08:24:41 +01:00
parent 12b14460e9
commit 58d0a96bfe

View File

@@ -1,32 +1,33 @@
# Caddyfile for Azure Storage Emulator
# It uses /etc/hosts entries to route requests to the emulator
# Replace "__ACCOUNT_NAME__" with a desired storage account name if needed
__ACCOUNT_NAME__.blob.core.windows.net {
tls __AZURITE_STORAGE__/__ACCOUNT_NAME___cert.pem __AZURITE_STORAGE__/__ACCOUNT_NAME___key.pem
reverse_proxy https://__ACCOUNT_NAME__.blob.core.windows.net:10000 {
reverse_proxy https://127.0.0.1:10000 {
transport http {
tls
tls_trust_pool file __AZURITE_STORAGE__/ca_cert.pem
tls_server_name __ACCOUNT_NAME__.blob.core.windows.net
}
}
}
__ACCOUNT_NAME__.queue.core.windows.net {
tls __AZURITE_STORAGE__/__ACCOUNT_NAME___cert.pem __AZURITE_STORAGE__/__ACCOUNT_NAME___key.pem
reverse_proxy https://__ACCOUNT_NAME__.queue.core.windows.net:10001 {
reverse_proxy https://127.0.0.1:10001 {
transport http {
tls
tls_trust_pool file __AZURITE_STORAGE__/ca_cert.pem
tls_server_name __ACCOUNT_NAME__.queue.core.windows.net
}
}
}
__ACCOUNT_NAME__.table.core.windows.net {
tls __AZURITE_STORAGE__/__ACCOUNT_NAME___cert.pem __AZURITE_STORAGE__/__ACCOUNT_NAME___key.pem
reverse_proxy https://__ACCOUNT_NAME__.table.core.windows.net:10002 {
reverse_proxy https://127.0.0.1:10002 {
transport http {
tls
tls_trust_pool file __AZURITE_STORAGE__/ca_cert.pem
tls_server_name __ACCOUNT_NAME__.table.core.windows.net
}
}
}