nginx added
This commit is contained in:
76
nginx/cm.yaml
Normal file
76
nginx/cm.yaml
Normal file
@@ -0,0 +1,76 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: nginx-vhosts
|
||||
data:
|
||||
default.conf: |
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html/homepage;
|
||||
index index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
charset utf-8;
|
||||
}
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css;
|
||||
gzip_min_length 1000;
|
||||
|
||||
## direkt in Treafik geroutet
|
||||
# location /_matrix {
|
||||
# proxy_pass http://synapse:8008;
|
||||
# proxy_set_header X-Forwarded-For $remote_addr;
|
||||
# client_max_body_size 128m;
|
||||
# }
|
||||
#
|
||||
# location /.well-known/matrix/ {
|
||||
# default_type application/json;
|
||||
# add_header Access-Control-Allow-Origin https://borninpain.de;
|
||||
# }
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name dev.ggwe;
|
||||
|
||||
root /usr/share/nginx/html/ggwe;
|
||||
index index.html index.htm;
|
||||
|
||||
#access_log /var/log/nginx/dev.abc.de.access.log;
|
||||
#error_log /var/log/nginx/dev.abc.de.error.log;
|
||||
|
||||
# location / {
|
||||
# try_files $uri $uri/ =404;
|
||||
# }
|
||||
#
|
||||
# location ~ /\.ht {
|
||||
# deny all;
|
||||
# }
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name i.pki.home c.pki.home;
|
||||
|
||||
root /usr/share/nginx/html/pki;
|
||||
index index.html index.htm;
|
||||
|
||||
#access_log /var/log/nginx/dev.abc.de.access.log;
|
||||
#error_log /var/log/nginx/dev.abc.de.error.log;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user