No description
Aravinth Manivannan
dd38dd05d1
DESCRIPTION Each deployment should have a default hostname before a custom domain can be assigned. Therefore, this domain must be in control of the Librepages system (Librepages/conductor, namely) SECURITY base_domain must be different from the domains hosting confidential information (authentication systems, PII data, etc.) to make use of browser domain sandboxing safety. If Librepages deployment is open to the public, unaudited, third-party content may be hosted in this domain, so it is very important that this domain shouldn't be used for critical infrastructure dealing with confidential information. |
||
---|---|---|
.github | ||
config | ||
contrib | ||
docs | ||
migrations | ||
scripts | ||
src | ||
templates | ||
utils/cache-bust | ||
.dockerignore | ||
.gitignore | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml | ||
Dockerfile | ||
LICENSE.md | ||
Makefile | ||
package-lock.json | ||
package.json | ||
README.md | ||
sqlx-data.json |
Why?
SSHing into a server and performing a git pull
is boring. I couldn't
find any free(as in freedom) software for automating static website
deploys like GitHub Pages or Netlify.
This is very minimal, all it does is a git fetch $branch
but it works
for me :)
Usage
-
All configuration is done through ./config/default.toml(can be moved to
/etc/static-pages/config.toml
). Too add a website, make a similar entry:pages = [ { branch = "gh-pages", repo = "https://github.com/realaravinth/realaravinth/", path ="/var/www/pages/realaravinth", secret = "mytopsecretsuperlongpassword123" }, ]
-
If
pages
is deployed atpages.example.com
and you wish to deploy changes fromgh-pages
branch, you can do so with the following command:curl -v --location --request POST 'https://pages.example.com/api/v1/update' \ --header 'Content-Type: application/json' \ --data-raw "{ \"secret\": \"$token\", \"branch\": \"gh-pages\" }"