Enhance emulator setup with Caddy support and update documentation

- Added Caddyfile example for HTTPS configuration.
- Updated README to include Caddy as an optional component.
- Modified make-certs.sh to use dynamic account names for certificate generation.
- Improved add-account.sh to handle missing accounts.env file gracefully.
- Enhanced run-server.sh to support Caddy integration and OAuth options.
This commit is contained in:
2026-02-26 21:36:38 +01:00
parent 4ad841e2f1
commit 01b81e41a8
6 changed files with 99 additions and 18 deletions

17
Caddyfile.example Normal file
View File

@@ -0,0 +1,17 @@
# Caddyfile for Azure Storage Emulator
# It uses /etc/hosts entries to route requests to the emulator
# Replace "devstoreaccount1" with a desired storage account name if needed
devstoreaccount1.blob.core.windows.net {
tls storage/server_cert.pem storage/server_key.pem
reverse_proxy localhost:10000
}
devstoreaccount1.queue.core.windows.net {
tls storage/server_cert.pem storage/server_key.pem
reverse_proxy localhost:10001
}
devstoreaccount1.table.core.windows.net {
tls storage/server_cert.pem storage/server_key.pem
reverse_proxy localhost:10002
}