summary refs log tree commit diff
path: root/nginx/conf/http.conf
blob: fc287e5f6bc66855e3ae0a543c61c5acf14d5e9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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/;
    }
}