summaryrefslogtreecommitdiff
path: root/debian_server/etc/caddy/Caddyfile
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2025-05-01 22:55:33 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2025-05-01 22:56:50 +0200
commit97ca9854283164ffc115e6e12aa13ac63f7daae0 (patch)
treed3a433989d9795ccfdf2cbab7ea75e7e47eebd09 /debian_server/etc/caddy/Caddyfile
parent2e466b701dbd4907e1fced42f5158e94137c4d5b (diff)
debian: Add configHEADmaster
Diffstat (limited to 'debian_server/etc/caddy/Caddyfile')
-rw-r--r--debian_server/etc/caddy/Caddyfile64
1 files changed, 64 insertions, 0 deletions
diff --git a/debian_server/etc/caddy/Caddyfile b/debian_server/etc/caddy/Caddyfile
new file mode 100644
index 0000000..e1bb5b1
--- /dev/null
+++ b/debian_server/etc/caddy/Caddyfile
@@ -0,0 +1,64 @@
+# The Caddyfile is an easy way to configure your Caddy web server.
+#
+# Unless the file starts with a global options block, the first
+# uncommented line is always the address of your site.
+#
+# To use your own domain name (with automatic HTTPS), first make
+# sure your domain's A/AAAA DNS records are properly pointed to
+# this machine's public IP, then replace ":80" below with your
+# domain name.
+#
+# Refer to the Caddy docs for more information:
+# https://caddyserver.com/docs/caddyfile
+
+{
+ admin off
+}
+
+cdn.elenq.tech {
+ root * /var/www/elenq
+ file_server
+}
+
+ekaitz.elenq.tech {
+ root * /var/www/ekaitz
+ file_server
+}
+
+thoughts.elenq.tech {
+ root * /var/www/thoughts
+ file_server
+}
+
+publishing.elenq.tech {
+ root * /var/www/elenq_publishing
+ file_server
+ redir / /en
+}
+
+www.publishing.elenq.tech {
+ redir https://publishing.elenq.tech{uri} permanent
+}
+
+postdata.biz {
+ root * /var/www/postdata
+ file_server
+ redir / /es
+}
+
+www.postdata.biz {
+ redir https://postdata.biz{uri} permanent
+}
+
+git.elenq.tech {
+ @assets path /cgit.css /cgit.js /cgit.png /favicon.ico /robots.txt
+ handle @assets {
+ root * /usr/share/cgit
+ file_server
+ }
+
+ reverse_proxy unix//run/fcgiwrap.socket {
+ transport fastcgi {
+ env SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi
+ }
+}