mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 09:39:25 +01:00
Ari-web source code https://ari.lt/
f6ded6473c
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com> |
||
---|---|---|
.vscode | ||
api | ||
content | ||
favicons | ||
page | ||
scripts | ||
.editorconfig | ||
.eslintrc.js | ||
.gitignore | ||
index.html | ||
LICENSE | ||
Makefile | ||
manifest.json | ||
netlify.toml | ||
package-lock.json | ||
package.json | ||
README.md | ||
robots.txt | ||
sitemap.xml | ||
TODO.md |
Website
My website's source code.
Customising when self-hosting
- Clone the repository:
git clone https://ari-web.xyz/git ari-web
- Enter the directory:
cd ari-web
- See the
/content/styles/config
and/content/js/config
directories. - Open it in live server:
python3 -m http.server 5500
- Go to http://0.0.0.0:5500/ in your browser
- Edit all stuff that is
ARI-WEB-SPECIFIC
in netlify.toml - Publish on netlify
Usage API
The usage api has all the statistics I get from netlify, it serves as an archive and growth monitor
Schema:
{
"<YYYY-MM-DD>": {
"total": <total bandwidth used in MB>,
"top": {
"<top usage site 1>": <total bandwidth used in MB>,
"<top usage site 2>": <total bandwidth used in MB>,
"<top usage site 3>": <total bandwidth used in MB>
}
}
}
The date is the day I added those stats, total is total bandwidth used up to that point, top is the top 3 site's usage and its keys are the (sub)domain names and the values of those keys are the used bandwidth out of the total
The bandwidth keys are all floats for easy parsing, they represent the bandwidth used in MB
The top sites will most likely not have the total bandwidth fully used, so as a measure you can use this formula to calculate how much per avg sites are using:
(data["<YYYY-MM-DD>"]["total"] - sum(data["<YYYY-MM-DD>"]["top"].values())) / (len(ari_web_sites) - 3)
Subdomains
- https://www.ari-web.xyz/ (source: https://ari-web.xyz/git)
- https://files.ari-web.xyz/ (source: https://files.ari-web.xyz/git)
- https://blog.ari-web.xyz/ (source: https://blog.ari-web.xyz/git)
- https://legacy.blog.ari-web.xyz/ (source: https://legacy.blog.ari-web.xyz/git)
- https://school.ari-web.xyz/ (source: proprietary (I don't want people snooping on my homework lol))
- https://user.ari-web.xyz/ (source: https://user.ari-web.xyz/git)
- https://3.ari-web.xyz/ (source: https://3.ari-web.xyz/git)