[nginx] Split config into multiple files

This commit is contained in:
Vincent Ambo 2016-03-23 15:13:06 +01:00
parent 196de92752
commit f3d71cf5fe
No known key found for this signature in database
GPG key ID: 66F505681DB8F43B
6 changed files with 116 additions and 66 deletions

42
nginx/conf/http.conf Normal file
View file

@ -0,0 +1,42 @@
# Default TLS redirect
server {
listen 80;
server_name *.tazj.in tazj.in;
return 301 https://$server_name$request_uri;
}
# Simple IP echo thing
server {
listen 80;
server_name ip.tazj.in;
access_log off;
add_header "Content-Type" "text/plain";
return 200 "$remote_addr\n";
}
# Redirect for oslo.pub
server {
listen 80;
listen 443 ssl;
server_name oslo.pub *.oslo.pub;
return 302 https://git.tazj.in/tazjin/pubkartet;
}
# Gogs web interface
server {
listen 443 ssl http2;
server_name git.tazj.in;
location / {
proxy_pass http://gogs-priv.default.svc.cluster.local:3000;
}
}
# TazBlog
server {
listen 443 ssl http2 default_server;
server_name www.tazj.in tazj.in default;
location / {
proxy_pass http://tazblog-priv.default.svc.cluster.local/;
}
}