+ Gitpage with hugo
For now its pretty barebones that will change v soon
This commit is contained in:
parent
abbfb48b48
commit
8f32ee4766
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,3 +13,5 @@ frontend/themes/clippable/static/js/collection.js
|
|||||||
api/static/js/
|
api/static/js/
|
||||||
api/thumbs/
|
api/thumbs/
|
||||||
build/
|
build/
|
||||||
|
gitpage/public/
|
||||||
|
gitpage/resources/
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "gitpage/themes/dimension"]
|
||||||
|
path = gitpage/themes/dimension
|
||||||
|
url = https://gitlab.com/dspechnikov/dimension-hugo
|
6
gitpage/archetypes/default.md
Normal file
6
gitpage/archetypes/default.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
11
gitpage/config.toml
Normal file
11
gitpage/config.toml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
baseURL = 'https://shockrah.gitlab.io/clippable'
|
||||||
|
languageCode = 'en-us'
|
||||||
|
title = 'Clippable'
|
||||||
|
|
||||||
|
theme = "dimension-hugo"
|
||||||
|
|
||||||
|
[params]
|
||||||
|
author = "shockrah"
|
||||||
|
description = "A self hostable solution to clip sharing"
|
||||||
|
copyrightText = "<a href=\"https://shockrah.xyz\">Shockrah</a>"
|
||||||
|
|
5
gitpage/content/_index.md
Normal file
5
gitpage/content/_index.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
+++
|
||||||
|
title = "Clippable"
|
||||||
|
+++
|
||||||
|
|
||||||
|
A self hosted solution to sharing video clips on the internet
|
54
gitpage/content/configuration.md
Normal file
54
gitpage/content/configuration.md
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
+++
|
||||||
|
title = "Configuring Clippable"
|
||||||
|
+++
|
||||||
|
|
||||||
|
# Environment Variables
|
||||||
|
|
||||||
|
There are only two _optional_ environment variables to configure if
|
||||||
|
you wish to configure them at all.
|
||||||
|
|
||||||
|
* `CLIPS_DIR` : default = `/media/clips`
|
||||||
|
|
||||||
|
This is the root directory for all clips that you intend on serving; it will have a structure similar to this example one.
|
||||||
|
|
||||||
|
```
|
||||||
|
vids
|
||||||
|
├── funny
|
||||||
|
│ └── another-clip.mp4
|
||||||
|
├── life
|
||||||
|
└── serious
|
||||||
|
└── clip.mkv
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
* `THUMBS_DIR`: default = `/media/thumbnails`
|
||||||
|
|
||||||
|
This is the root directory for all clips that you intend on serving; it will have a structure similar to this example one.
|
||||||
|
|
||||||
|
```
|
||||||
|
thumbs
|
||||||
|
├── funny
|
||||||
|
│ ├── category-thumbnail.jpg
|
||||||
|
│ └── clip.mkv.jpg
|
||||||
|
├── life
|
||||||
|
│ └── category-thumbnail.jpg
|
||||||
|
└── serious
|
||||||
|
├── category-thumbnail.jpg
|
||||||
|
└── clip.mkv.jpg
|
||||||
|
```
|
||||||
|
|
||||||
|
# rocket.toml
|
||||||
|
|
||||||
|
Below is a list of options and their default values in the provided `rocket.toml` file.
|
||||||
|
This is generally used to configure the webserver itself and not much else.
|
||||||
|
|
||||||
|
|Option |Default Value|
|
||||||
|
|-------------|--------------|
|
||||||
|
| address | 0.0.0.0 |
|
||||||
|
| port | 8482 |
|
||||||
|
| keep_alive | 5 |
|
||||||
|
|read_timeout | 5 |
|
||||||
|
|write_timeout| 5 |
|
||||||
|
| log | critical |
|
||||||
|
| limits | {forms=4096} |
|
||||||
|
|
1
gitpage/themes/dimension
Submodule
1
gitpage/themes/dimension
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit fa299fad2698e8b4962102a02f5d02fa2cb227c8
|
Loading…
Reference in New Issue
Block a user