-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to caddy webserver * switching to classic caddy service * adapt .gitignore * add return line end of file Caddyfile * fix wording in README.md * remove traefik.yml ressources * switch to gateway + add caddy binary to gitignore * remove redirection because now handled in gateway + redirect just import * add more comments * remove -> ignore * can keep cas path uncommented since it doesn't hurt anything * migrate from traefik.me to nip.io * add note about snap and security caddy trust * add warning icon for fnecas
- Loading branch information
Showing
11 changed files
with
118 additions
and
167 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# envs-common | ||
FQDN=georchestra-127-0-1-1.traefik.me | ||
FQDN=georchestra-127-0-0-1.nip.io | ||
SMTPHOST=smtp | ||
SMTPPORT=25 |
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
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,2 @@ | ||
* `etc`: Configuration folder for Caddy web server. You will find the Caddyfile there. | ||
* `data`: This repository is for the storage of Caddy web server. |
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,55 @@ | ||
(static_fileserver) { | ||
root * /usr/share/caddy/static | ||
file_server | ||
} | ||
|
||
{$FQDN} { | ||
tls internal | ||
# For using a custom certificate: | ||
# tls /etc/certs/ca.pem /etc/certs/key.pem | ||
|
||
@static-resources { | ||
path /favicon.ico | ||
path /crossdomain.xml | ||
path /robots.txt | ||
} | ||
|
||
handle_errors { | ||
@5xx `{err.status_code} >= 500 && {err.status_code} < 600` | ||
handle @5xx { | ||
import static_fileserver | ||
rewrite * /errors/50x.html | ||
} | ||
} | ||
|
||
handle @static-resources { | ||
import static_fileserver | ||
} | ||
|
||
handle_path /public/* { | ||
import static_fileserver | ||
} | ||
|
||
handle /cas/* { | ||
reverse_proxy cas:8080 | ||
} | ||
|
||
handle /webmail/* { | ||
reverse_proxy webmail:80 | ||
} | ||
|
||
# To be removed once import container support automatic redirection. | ||
handle /import { | ||
redir /import /import/ | ||
} | ||
|
||
handle { | ||
reverse_proxy gateway:8080 | ||
header { | ||
Access-Control-Allow-Origin * | ||
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS" | ||
Access-Control-Max-Age 1800 | ||
Access-Control-Allow-Credentials: true | ||
} | ||
} | ||
} |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.