{
	servers {
		protocols h1 h2
	}
}

haos.alogins.net {
	reverse_proxy http://192.168.1.4:8123 {
	
        header_up X-Forwarded-For {remote_host}
        header_up X-Forwarded-Proto {scheme}
}
}


vi.alogins.net {
	reverse_proxy localhost:2283
}

doc.alogins.net {
	reverse_proxy localhost:11001
}

zb.alogins.net {
	reverse_proxy 192.168.1.4:81
}

wiki.alogins.net {
	reverse_proxy localhost:8083 {
        	header_up Host {http.request.host}
        	header_up X-Forwarded-Proto {scheme}
        	header_up X-Real-IP {remote_host}
	}
}

lt.alogins.net {
	reverse_proxy localhost:4321
}

nn.alogins.net {
	reverse_proxy localhost:5678
}

git.alogins.net {
	reverse_proxy localhost:3000
}

ds.alogins.net {
	reverse_proxy localhost:3974
}

ai.alogins.net {
	reverse_proxy localhost:3125
}

news.alogins.net {
	reverse_proxy localhost:8091
}

family.alogins.net {
	reverse_proxy localhost:8099
}

lw.alogins.net {
	reverse_proxy localhost:3012
}

todo.alogins.net {
	reverse_proxy localhost:3457
}

ttt.alogins.net {
	reverse_proxy localhost:3003
}

openpi.alogins.net {
	root * /home/alvis/tmp/files/pi05_droid
    	file_server browse

}

dl.alogins.net {
	@chiefx17 path /chief-x17.zip
	handle @chiefx17 {
		root * /mnt/misc/qbittorrent/downloads
		file_server
	}
	respond 404
}


vui3.alogins.net {
    @xhttp {
        path /VLSpdG9k/xht*
    }
    handle @xhttp {
        reverse_proxy http://localhost:8445 {
            flush_interval -1
            header_up X-Real-IP {remote_host}
	    transport http {
              read_timeout 0
              write_timeout 0
              dial_timeout 10s
            }
        }
    }
	reverse_proxy /gnYCNq4EbYukS5qtOe/* localhost:58959
	respond 401 
}

o.alogins.net {
	handle /api/* {
		reverse_proxy localhost:3078
	}
	handle /admin* {
		reverse_proxy localhost:3080
	}
	handle /mlflow* {
		reverse_proxy localhost:5000
	}
	handle /airflow* {
		reverse_proxy localhost:8080
	}
	handle {
		reverse_proxy localhost:3079
	}
}

vui4.alogins.net {
	reverse_proxy localhost:58959
}

ntfy.alogins.net {
	reverse_proxy localhost:8840
}

docs.alogins.net {
	reverse_proxy localhost:8078
}

office.alogins.net {
	reverse_proxy localhost:6233
}

vw.alogins.net {
	reverse_proxy localhost:8041
}

mtx.alogins.net {
	handle /.well-known/matrix/client {
		header Content-Type application/json
		header Access-Control-Allow-Origin *
		respond `{"m.homeserver":{"base_url":"https://mtx.alogins.net"},"org.matrix.msc4143.rtc_foci":[{"type":"livekit","livekit_service_url":"https://lkjwt.alogins.net"}]}`
	}
	handle /.well-known/matrix/server {
		header Content-Type application/json
		header Access-Control-Allow-Origin *
		respond `{"m.server":"mtx.alogins.net:443"}`
	}
	handle /_matrix/client/unstable/org.matrix.msc4143/rtc/transports {
		header Content-Type application/json
		header Access-Control-Allow-Origin *
		respond `{"foci":[{"type":"livekit","livekit_service_url":"https://lkjwt.alogins.net"}]}`
	}
	reverse_proxy localhost:8008
}

lkjwt.alogins.net {
	reverse_proxy localhost:8009
}

lk.alogins.net {
	reverse_proxy localhost:7880
}

lf.alogins.net {
	reverse_proxy localhost:3200
}

llm.alogins.net {
	reverse_proxy localhost:4000
}

overleaf.alogins.net {
	reverse_proxy localhost:8089
}

voice.alogins.net {
	reverse_proxy localhost:8882
}

iperf.alogins.net {
	reverse_proxy localhost:8095
}

anki.alogins.net {
	reverse_proxy localhost:8180
}

kb.alogins.net {
	reverse_proxy localhost:4800
}

mood.alogins.net {
	reverse_proxy localhost:5177
}

sync.alogins.net {
	reverse_proxy localhost:8384
}

dav.alogins.net {
	reverse_proxy localhost:5232
}

tor.alogins.net {
	reverse_proxy localhost:8085
}

win.alogins.net {
	reverse_proxy localhost:8006
}

localhost:8042 {
	reverse_proxy localhost:8041
    	tls internal
}
