Skip to content

Commit

Permalink
Add Caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Mar 19, 2024
1 parent 51ffb5e commit e1f43a6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.

domain.com, www.domain.com {
# Another common task is to set up a reverse proxy:
reverse_proxy localhost:3000
}

d.domain.com {
reverse_proxy localhost:3000
rewrite * ?direct=true
}

g.domain.com {
reverse_proxy localhost:3000
rewrite * ?gallery=true
}

# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile

0 comments on commit e1f43a6

Please sign in to comment.