Created
December 27, 2022 12:31
-
-
Save iampato/49228d177fa828e4e8cef3b018899443 to your computer and use it in GitHub Desktop.
nginx api gateway setup
This file contains hidden or 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
| server { | |
| server_name localhost; | |
| listen 80; | |
| location ~ /users/[12][0-9]+ { | |
| proxy_pass http://localhost:8802; | |
| } | |
| location ~ /products/[12][0-9]+ { | |
| proxy_pass http://localhost:8800; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another version without regex