Created
July 19, 2018 17:41
-
-
Save juanisierra/2660d1f4a80ba0593e598cab8e8f60fd to your computer and use it in GitHub Desktop.
Azure static sites deployment proxies
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
{ | |
"$schema": "http://json.schemastore.org/proxies", | |
"proxies": { | |
"root": { | |
"matchCondition": { | |
"route": "/" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"static": { | |
"matchCondition": { | |
"route": "/static/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/static/{restOfPath}" | |
}, | |
"css": { | |
"matchCondition": { | |
"route": "/static/css/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/static/css/{restOfPath}" | |
}, | |
"js": { | |
"matchCondition": { | |
"route": "/static/js/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/static/js/{restOfPath}" | |
}, | |
"media": { | |
"matchCondition": { | |
"route": "/static/media/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/static/media/{restOfPath}" | |
}, | |
"vendor": { | |
"matchCondition": { | |
"route": "/js/vendor/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/js/vendor/{restOfPath}" | |
}, | |
"level1root": { | |
"matchCondition": { | |
"route": "/{level1}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"level2root": { | |
"matchCondition": { | |
"route": "/{level1}/{level2}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"level3root": { | |
"matchCondition": { | |
"route": "/{level1}/{level2}/{level3}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"level4root": { | |
"matchCondition": { | |
"route": "/{level1}/{level2}/{level3}/{level4}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"level1": { | |
"matchCondition": { | |
"route": "/{level1}/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"level2": { | |
"matchCondition": { | |
"route": "/{level1}/{level2}/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"level3": { | |
"matchCondition": { | |
"route": "/{level1}/{level2}/{level3}/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"level4": { | |
"matchCondition": { | |
"route": "/{level1}/{level2}/{level3}/{level4}/{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/index.html" | |
}, | |
"restofpath": { | |
"matchCondition": { | |
"route": "{*restOfPath}" | |
}, | |
"backendUri": "https://<blob url>/<container name>/site/{restOfPath}" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment