Move http traffic to port 8442

This commit is contained in:
Devon Mackay 2018-08-07 17:01:40 -04:00
parent 55c08d1188
commit 9cb5f88239
2 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,8 @@ data:
nginx-config: |- nginx-config: |-
server { server {
server_name www.atat.codes atat.codes; server_name www.atat.codes atat.codes;
listen 8080 http2; listen 8442 http2;
listen [::]:8442 http2 ipv6only=on;
#if ($http_x_forwarded_proto != 'https') { #if ($http_x_forwarded_proto != 'https') {
# return 301 https://$host$request_uri; # return 301 https://$host$request_uri;
#} #}
@ -30,7 +31,7 @@ data:
server { server {
server_name auth.atat.codes; server_name auth.atat.codes;
listen 8443 ssl http2; listen 8443 ssl http2;
listen [::]:443 ssl http2 ipv6only=on; listen [::]:8443 ssl http2 ipv6only=on;
# SSL server certificate and private key # SSL server certificate and private key
ssl_certificate /etc/ssl/private/auth.atat.crt; ssl_certificate /etc/ssl/private/auth.atat.crt;
ssl_certificate_key /etc/ssl/private/auth.atat.key; ssl_certificate_key /etc/ssl/private/auth.atat.key;

View File

@ -38,7 +38,7 @@ spec:
- name: atst-nginx - name: atst-nginx
image: nginx:alpine image: nginx:alpine
ports: ports:
- containerPort: 8080 - containerPort: 8442
name: http name: http
- containerPort: 8443 - containerPort: 8443
name: https name: https
@ -118,7 +118,7 @@ spec:
ports: ports:
- name: "http" - name: "http"
port: 80 port: 80
targetPort: 8080 targetPort: 8442
- name: "https" - name: "https"
port: 443 port: 443
targetPort: 8443 targetPort: 8443