Created
July 14, 2024 07:28
-
-
Save bouroo/ee9cef97006f04eb6d70255ae2534495 to your computer and use it in GitHub Desktop.
simple nginx/unit config to serve SPA
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
{ | |
"listeners": { | |
"*:8080": { | |
"pass": "routes/main" | |
} | |
}, | |
"routes": { | |
"main": [ | |
{ | |
"action": { | |
"share": ["/www$uri", "/www/$uri"], | |
"fallback": { | |
"share": "/www/index.html" | |
} | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment