diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8fa3e1..7044d20 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,18 @@ package: - cp target/release/api build/server - cp ./scripts/generate-thumbnail.sh build/ - cp readme.md build/ + - sh ./scripts/default-rocket-toml.sh artifacts: paths: - build/ + +website: + image: klakegg/hugo:ext-alpine + stage: build + script: + - cd gitpage + - hugo + - mv public/ + artifacts: + paths: + - gitpage/public \ No newline at end of file diff --git a/gitpage/content/_index.md b/gitpage/content/_index.md index bf941f1..f1e35bf 100644 --- a/gitpage/content/_index.md +++ b/gitpage/content/_index.md @@ -2,4 +2,4 @@ title = "Clippable" +++ -A self hosted solution to sharing video clips on the internet +A self hosted solution to sharing video clips on the internets diff --git a/scripts/default-rocket-toml.sh b/scripts/default-rocket-toml.sh new file mode 100644 index 0000000..1b50cf2 --- /dev/null +++ b/scripts/default-rocket-toml.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +echo Copying in default configuration for web server +cat << EOF > build/rocket.toml +[production] +address = "0.0.0.0" +port = 8482 +keep_alive = 5 +read_timeout = 5 +write_timeout = 5 +log = "critical" +limits = { forms = 4096 } + +# Must be type (below is not valid toml syntax) +#workers = [number_of_cpus * 2] +EOF