-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updates for airgapped-docs 0.1.7 (#229) Signed-off-by: Adam Martin <[email protected]> * Fix ipv issue by making ipv4 and ipv6 configurable & fix svc ports. (#228) * Fix ipv issue by making ipv4 and ipv6 configurable & fix svc ports. * Update chart version * Add support for restricted PSA * Update Chart.yaml --------- Signed-off-by: Adam Martin <[email protected]> Co-authored-by: Adam Martin <[email protected]>
- Loading branch information
1 parent
02e149e
commit 5a8ae2b
Showing
7 changed files
with
157 additions
and
17 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: nginx-config | ||
data: | ||
nginx.conf: | | ||
worker_processes auto; | ||
error_log /dev/stdout debug; | ||
pid /run/nginx/nginx.pid; | ||
events { | ||
worker_connections 1024; | ||
} | ||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
access_log /dev/stdout; | ||
sendfile on; | ||
keepalive_timeout 65; | ||
server { | ||
{{- if .Values.global.ipv4.enabled }} | ||
listen 8080; | ||
{{- end }} | ||
{{- if .Values.global.ipv6.enabled }} | ||
listen [::]:8080; | ||
{{- end }} | ||
server_name localhost; | ||
port_in_redirect off; | ||
root /var/lib/nginx/html; | ||
location / { | ||
try_files $uri $uri/ @htmlext; | ||
} | ||
location ~ \.html$ { | ||
try_files $uri =404; | ||
} | ||
location @htmlext { | ||
rewrite ^(.*)$ $1.html last; | ||
} | ||
} | ||
} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: nginx-html-config | ||
data: | ||
nginx.conf: | | ||
worker_processes auto; | ||
error_log /dev/stdout info; | ||
pid /run/nginx/nginx.pid; | ||
events { | ||
worker_connections 1024; | ||
} | ||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
access_log /dev/stdout; | ||
sendfile on; | ||
keepalive_timeout 65; | ||
server { | ||
{{- if .Values.global.ipv4.enabled }} | ||
listen 8080; | ||
{{- end }} | ||
{{- if .Values.global.ipv6.enabled }} | ||
listen [::]:8080; | ||
{{- end }} | ||
server_name localhost; | ||
port_in_redirect off; | ||
root /var/lib/nginx/html; | ||
rewrite ^/(.*)/$ /$1.html permanent; | ||
location / { | ||
rewrite ^/(.*)/$ /$1 permanent; | ||
try_files $uri $uri/ @htmlext; | ||
} | ||
location ~ \.html$ { | ||
try_files $uri =404; | ||
} | ||
location @htmlext { | ||
rewrite ^(.*)$ $1.html last; | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ metadata: | |
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: http | ||
selector: | ||
|
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