From 9d161f7954709cfffcef4038e3b035e9308c48c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Pie=C5=82a?= Date: Tue, 27 May 2025 18:17:50 +0200 Subject: [PATCH] Commit files --- Caddyfile | 1 + sites/seccodesmith.pl.conf | 1 + sites/seccodesmith.pl/certs | 1 + sites/seccodesmith.pl/drive.seccodesmith.pl.conf | 4 ++++ sites/seccodesmith.pl/email.seccodesmith.pl.conf | 4 ++++ sites/seccodesmith.pl/git.seccodesmith.pl.conf | 4 ++++ sites/seccodesmith.pl/jenkins.seccodesmith.pl.conf | 4 ++++ sites/seccodesmith.pl/seccodesmith.pl.conf | 9 +++++++++ 8 files changed, 28 insertions(+) create mode 100644 Caddyfile create mode 100644 sites/seccodesmith.pl.conf create mode 100644 sites/seccodesmith.pl/certs create mode 100644 sites/seccodesmith.pl/drive.seccodesmith.pl.conf create mode 100644 sites/seccodesmith.pl/email.seccodesmith.pl.conf create mode 100644 sites/seccodesmith.pl/git.seccodesmith.pl.conf create mode 100644 sites/seccodesmith.pl/jenkins.seccodesmith.pl.conf create mode 100644 sites/seccodesmith.pl/seccodesmith.pl.conf diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..5ce2917 --- /dev/null +++ b/Caddyfile @@ -0,0 +1 @@ +import sites/*.conf \ No newline at end of file diff --git a/sites/seccodesmith.pl.conf b/sites/seccodesmith.pl.conf new file mode 100644 index 0000000..1f482ee --- /dev/null +++ b/sites/seccodesmith.pl.conf @@ -0,0 +1 @@ +import seccodesmith.pl/*.conf \ No newline at end of file diff --git a/sites/seccodesmith.pl/certs b/sites/seccodesmith.pl/certs new file mode 100644 index 0000000..b06722c --- /dev/null +++ b/sites/seccodesmith.pl/certs @@ -0,0 +1 @@ +tls /etc/letsencrypt/live/seccodesmith.pl/fullchain.pem /etc/letsencrypt/live/seccodesmith.pl/privkey.pem \ No newline at end of file diff --git a/sites/seccodesmith.pl/drive.seccodesmith.pl.conf b/sites/seccodesmith.pl/drive.seccodesmith.pl.conf new file mode 100644 index 0000000..8174db0 --- /dev/null +++ b/sites/seccodesmith.pl/drive.seccodesmith.pl.conf @@ -0,0 +1,4 @@ +drive.seccodesmith.pl { + import certs + reverse_proxy nextcloud:80 +} \ No newline at end of file diff --git a/sites/seccodesmith.pl/email.seccodesmith.pl.conf b/sites/seccodesmith.pl/email.seccodesmith.pl.conf new file mode 100644 index 0000000..5862bd6 --- /dev/null +++ b/sites/seccodesmith.pl/email.seccodesmith.pl.conf @@ -0,0 +1,4 @@ +email.seccodesmith.pl { + import certs + reverse_proxy roundcubemail:80 +} \ No newline at end of file diff --git a/sites/seccodesmith.pl/git.seccodesmith.pl.conf b/sites/seccodesmith.pl/git.seccodesmith.pl.conf new file mode 100644 index 0000000..cb3dc85 --- /dev/null +++ b/sites/seccodesmith.pl/git.seccodesmith.pl.conf @@ -0,0 +1,4 @@ +git.seccodesmith.pl { + import certs + reverse_proxy gitea:3000 +} \ No newline at end of file diff --git a/sites/seccodesmith.pl/jenkins.seccodesmith.pl.conf b/sites/seccodesmith.pl/jenkins.seccodesmith.pl.conf new file mode 100644 index 0000000..ac6f1b5 --- /dev/null +++ b/sites/seccodesmith.pl/jenkins.seccodesmith.pl.conf @@ -0,0 +1,4 @@ +jenkins.seccodesmith.pl { + import certs + reverse_proxy jenkins:8080 +} \ No newline at end of file diff --git a/sites/seccodesmith.pl/seccodesmith.pl.conf b/sites/seccodesmith.pl/seccodesmith.pl.conf new file mode 100644 index 0000000..ad070a1 --- /dev/null +++ b/sites/seccodesmith.pl/seccodesmith.pl.conf @@ -0,0 +1,9 @@ +www.seccodesmith.pl seccodesmith.pl { + import certs + root /sites/seccodesmith.pl/ + + reverse_proxy /pgadmin/* pgadmin:80 { + header_up X-Real-IP {remote_host} + header_up X-Script-Name /pgadmin + } +} \ No newline at end of file