forked from deviantony/docker-elk
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
c1eb179
commit cb65ee6
Showing
9 changed files
with
75 additions
and
10 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
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,26 @@ | ||
# 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. | ||
|
||
:80 { | ||
# Set this path to your site's directory. | ||
root * /usr/share/caddy | ||
|
||
# Enable the static file server. | ||
file_server browse | ||
|
||
# Another common task is to set up a reverse proxy: | ||
# reverse_proxy localhost:8080 | ||
|
||
# Or serve a PHP site through php-fpm: | ||
# php_fastcgi localhost:9000 | ||
} | ||
|
||
# Refer to the Caddy docs for more information: | ||
# https://caddyserver.com/docs/caddyfile |
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 @@ | ||
FROM caddy:2.6 |
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,2 @@ | ||
This is just an example file to be statically served by caddy | ||
if you want to see other files, you should change CADDY_PUBLIC_DIR in your .env file |
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
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
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,13 @@ | ||
upstream docker-caddy { | ||
server caddy:80; | ||
} | ||
|
||
server { | ||
listen ${CADDY_EXPOSED_PORT}; | ||
server_name ${METRICS_HOSTNAME}; | ||
access_log /var/log/nginx/caddy-public.log; | ||
|
||
location / { | ||
proxy_pass http://docker-caddy; | ||
} | ||
} |
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
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