Commit df0b2d79 authored by Jens Langhammer's avatar Jens Langhammer

add x-forwarded-for support for nginx, update dpeployment

parent 2079cf07
Pipeline #4224 passed with stage
in 12 seconds
FROM nginx:alpine
COPY html/ /usr/share/nginx/html/
RUN ls -la /usr/share/nginx/
COPY nginx.conf /etc/nginx/conf.d/default.conf
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: jela-io-web
......
......@@ -3,15 +3,11 @@ kind: Ingress
metadata:
name: jela-io-ingress
namespace: prod-jela-io
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
labels:
app.kubernetes.io/name: jela.io
app.kubernetes.io/managed-by: jela.io
annotations:
kubernetes.io/ingress.class: nginx
ingress.kubernetes.io/proxy-body-size: 5000m
nginx.ingress.kubernetes.io/proxy-body-size: 5000m
kubernetes.io/tls-acme: "true"
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
......
server {
listen 80;
server_name localhost;
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 172.16.0.0/12;
set_real_ip_from 192.168.0.0/16;
real_ip_header X-Forwarded-For;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment