From de9cae795f93d03e68d965c59af4b21d96df4ec7 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Dec 2024 10:39:16 -0500 Subject: initial --- build/nginx/nginx.api.server.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 build/nginx/nginx.api.server.conf (limited to 'build/nginx/nginx.api.server.conf') diff --git a/build/nginx/nginx.api.server.conf b/build/nginx/nginx.api.server.conf new file mode 100644 index 0000000..5dd88a4 --- /dev/null +++ b/build/nginx/nginx.api.server.conf @@ -0,0 +1,14 @@ +location /api/ { + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_set_header Accept-Encoding ""; + proxy_redirect off; + + default_type application/json; + add_header 'Access-Control-Allow-Origin' '*'; + add_header Content-Location /api/$upstream_http_content_location; + proxy_set_header Connection ""; + proxy_http_version 1.1; + + proxy_pass http://postgrest/; +} -- cgit v1.2.3-freya