host-git/templates/Caddyfile
GregoryDosh 3c846ca89a
All checks were successful
Deploy Ansible Pipeline / Deploy Ansible Pipeline (push) Successful in 53s
refactor: licensing updates to match other repos (#163)
feat: licensing refactor

fix: update gitignore for logs files (license check in ci)

Reviewed-on: #163
Co-authored-by: GregoryDosh <authentik@gregorydosh.com>
Co-committed-by: GregoryDosh <authentik@gregorydosh.com>
2024-12-20 21:56:20 +00:00

35 lines
1.2 KiB
Caddyfile

# Private Forgejo instance for managing/automating Auengun.net
# Source available at git.auengun.net/homelab/host-git
# Copyright (C) 2024 GregoryDosh
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2024 GregoryDosh
{
import /etc/caddy/globals
}
https://git.auengun.net, https://git.virt.auengun.net {
log
import /etc/caddy/redirect_bad_actors
import /etc/caddy/basic_ratelimit
import /etc/caddy/wellknown_security
handle {
rewrite /user/login /user/oauth2/auth
reverse_proxy http://localhost:3000 {
header_up Host git.auengun.net
}
}
}