Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teckids.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Team PR
teckids.org
Commits
30f5b8c2
Unverified
Commit
30f5b8c2
authored
11 months ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Add Docker and Caddy for hosting outside GitLab pages
parent
acf106f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#179357
canceled
11 months ago
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Caddyfile
+35
-0
35 additions, 0 deletions
Caddyfile
Dockerfile
+17
-0
17 additions, 0 deletions
Dockerfile
config.toml
+2
-2
2 additions, 2 deletions
config.toml
with
54 additions
and
2 deletions
Caddyfile
0 → 100644
+
35
−
0
View file @
30f5b8c2
http://teckids.org {
root * /srv
encode zstd gzip
file_server
header {
Content-Security-Policy "default-src 'self'; img-src 'self' data:; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content; base-uri 'self'"
X-Content-Type-Options nosniff
Referrer-Policy strict-origin-when-cross-origin
}
route {
header Cache-Control "public, max-age=3600"
header /processed_images/* Cache-Control "public, max-age=604800, immutable"
}
}
http://www.teckids.org {
redir http://teckids.org{uri} permanent
}
http://hacknsun.camp, http://www.hacknsun.camp {
redir / http://teckids.org/projekte/hack-n-fun/freizeiten/hacknsun/ permanent
error 404
}
http://hacknfun.camp, http://www.hacknfun.camp {
redir / http://teckids.org/projekte/hack-n-fun/ permanent
error 404
}
http://schul-frei.dev, http://www.schul-frei.dev {
redir / http://teckids.org/projekte/schul-frei/ permanent
error 404
}
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
17
−
0
View file @
30f5b8c2
FROM
alpine:latest
AS
build
RUN
apk add
--update-cache
--repository
http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola yarn
COPY
. /src
WORKDIR
/src
RUN
yarn
install
RUN
zola build
FROM
caddy:alpine
AS
serve
COPY
--from=build /src/public/ /srv/
COPY
Caddyfile /etc/caddy/Caddyfile
RUN
caddy
fmt
--overwrite
/etc/caddy/Caddyfile
This diff is collapsed.
Click to expand it.
config.toml
+
2
−
2
View file @
30f5b8c2
...
@@ -9,8 +9,8 @@ output_dir = "public"
...
@@ -9,8 +9,8 @@ output_dir = "public"
compile_sass
=
true
compile_sass
=
true
build_search_index
=
false
build_search_index
=
false
generate_feed
=
true
generate_feed
=
true
hard_link_static
=
tru
e
hard_link_static
=
fals
e
#
minify_html =
tru
e
minify_html
=
fals
e
taxonomies
=
[
taxonomies
=
[
# Static content groups
# Static content groups
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment