Skip to content

Commit

Permalink
added basic auth on front end only
Browse files Browse the repository at this point in the history
  • Loading branch information
slim committed Dec 5, 2023
1 parent 3429643 commit 6a4fbb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/docker/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,16 @@ route {
# Disable Topics tracking if not enabled explicitly: https://github.com/jkarlin/topics
header ?Permissions-Policy "browsing-topics=()"

basicauth @pwa {
tilleuls $2y$13$bXkpXwXySgbQgjGdeTt9ce9Lo8ssk/umVijKMH2Py8wfjSHgmAPNO
}

# Comment the following line if you don't want Next.js to catch requests for HTML documents.
# In this case, they will be handled by the PHP app.
reverse_proxy @pwa http://{$PWA_UPSTREAM} {
trusted_proxies private_ranges
}

php_fastcgi unix//var/run/php/php-fpm.sock {
trusted_proxies private_ranges
}
Expand Down

0 comments on commit 6a4fbb4

Please sign in to comment.