-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Where caddy should listen | ||
:2015 | ||
|
||
# Turn on the Web/file server | ||
file_server | ||
#templates { | ||
# mime "text/javascript" "application/javascript" | ||
#} | ||
|
||
# The site root | ||
root * /opt/app-root/src | ||
|
||
# Because we should | ||
encode zstd gzip | ||
|
||
# This rewrite rule may be required to get React apps | ||
# to deal with trailing slashes properly. | ||
#@filter { | ||
# not path_regexp ^\/0.0.0.0 | ||
# file { | ||
# try_files {path} {path}/ /?url={uri} | ||
# } | ||
#} | ||
#rewrite @try_files {http.matchers.file.relative} | ||
|
||
# This properly deals with react routes. | ||
try_files {path} {path}/ /index.html | ||
|
||
# On OCP we should log to stdout so Prometheus can | ||
# slurp up the logs for human consumption. | ||
log { | ||
#errors stdout | ||
output stdout | ||
format single_field common_log | ||
level info | ||
} |