Last active
May 11, 2024 20:40
-
-
Save tkrisztian95/0d09595dccd500527a8025f790141c8d to your computer and use it in GitHub Desktop.
Nginx server JSON file as an API response
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
root /var/www; | |
location /api/endpoint { | |
default_type application/json; | |
index apiResponse.json; | |
alias /var/www/; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment