-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45244d1
commit 6c12918
Showing
5 changed files
with
86 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
75 changes: 75 additions & 0 deletions
75
charts/brokencrystals-experimental/templates/nginx-config.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "brokencrystals.fullname" . }}-nginx | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
# /etc/nginx/conf.d/default.conf | ||
default.conf: | | ||
server { | ||
listen [::]:80 ipv6only=on; | ||
listen 80; | ||
root /var/www/html; | ||
# Load configuration files for the default server block. | ||
include /etc/nginx/default.d/*.conf; | ||
index index.html; | ||
location / { | ||
autoindex on; | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
location /api { | ||
# Forward API requests to the Node.js application | ||
proxy_pass http://127.0.0.1:3000; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
location /swagger { | ||
# Forward /swagger requests to the Node.js application | ||
proxy_pass http://127.0.0.1:3000; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
location /graphiql { | ||
# Forward /graphiql requests to the Node.js application | ||
proxy_pass http://127.0.0.1:3000; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
location /graphql { | ||
# Forward /graphql requests to the Node.js application | ||
proxy_pass http://127.0.0.1:3000; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
location /put.raw { | ||
# Forward /put.raw requests to the Node.js application | ||
rewrite ^/put.raw /api/file/raw?path=./gil.txt break; | ||
proxy_pass http://127.0.0.1:3000; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
location ~* ^/(config\.js|config\.json|\.htaccess|\.env|\.nginx\.conf|\.robots\.txt)$ { | ||
allow all; | ||
log_not_found off; | ||
access_log off; | ||
expires 1d; | ||
} | ||
error_page 404 /404.html; | ||
location = /404.html { | ||
} | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
} | ||
} |
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