created major large-scale changes
This commit is contained in:
11
roles/init-server/templates/user/config/caddy/Caddyfile.j2
Normal file
11
roles/init-server/templates/user/config/caddy/Caddyfile.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
http://<< inventory_hostname >> {
|
||||
handle /.well-known/acme-challenge/* {
|
||||
reverse_proxy localhost:80
|
||||
}
|
||||
}
|
||||
|
||||
:80 {
|
||||
root * /srv/<< inventory_hostname >>
|
||||
file_server
|
||||
encode gzip
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
[storage]
|
||||
# Storage driver - use overlay with fuse-overlayfs for rootless
|
||||
driver = "overlay"
|
||||
|
||||
# Root directory for storage (default: $HOME/.local/share/containers/storage)
|
||||
# Uncomment to customize:
|
||||
graphroot = "{{ ansible_user_home.stdout }}/volumes"
|
||||
|
||||
# Run directory for transient data
|
||||
runroot = "/run/user/1000/containers"
|
||||
|
||||
[storage.options]
|
||||
[storage.options.overlay]
|
||||
# Use fuse-overlayfs for rootless overlay support on older kernels
|
||||
mount_program = "/usr/bin/fuse-overlayfs"
|
||||
339
roles/init-server/templates/user/config/glance/glance.yml.j2
Normal file
339
roles/init-server/templates/user/config/glance/glance.yml.j2
Normal file
@@ -0,0 +1,339 @@
|
||||
server:
|
||||
port: {{ glance.port }}
|
||||
{% if glance.proxied %}
|
||||
proxied: true
|
||||
{% endif %}
|
||||
base-url: /
|
||||
pages:
|
||||
- name: home
|
||||
head-widgets:
|
||||
- type: search
|
||||
search-engine: {{ glance.search.engine }}
|
||||
bangs:
|
||||
- title: Linux Kernel
|
||||
shortcut: "@linuxkernel"
|
||||
url: "https://www.kernel.org/doc/html/latest/search.html?q={QUERY}"
|
||||
- title: Linux
|
||||
shortcut: "@linux"
|
||||
url: https://cse.google.com/cse?cx=017644269519104757279%3Agm62gtzaoky&q={QUERY}&sa=go
|
||||
- title: Debian
|
||||
shortcut: "@deb"
|
||||
url: https://search.debian.org/cgi-bin/omega?DB=en&P={QUERY}
|
||||
- title: C++
|
||||
shortcut: "@cpp"
|
||||
url: https://learn.microsoft.com/en-us/search/?scope=C%2B%2B&view=msvc-170&terms={QUERY}
|
||||
- title: Rust
|
||||
shortcut: "@rust"
|
||||
url: https://doc.rust-lang.org/book/?search={QUERY}
|
||||
- title: Python
|
||||
shortcut: "@python"
|
||||
url: https://docs.python.org/3/search.html?check_keywords=yes&area=default&q={QUERY}
|
||||
- title: Python Click
|
||||
shortcut: "@pyclick"
|
||||
url: https://click.palletsprojects.com/en/stable/search/?q={QUERY}
|
||||
- title: Ansible
|
||||
shortcut: "@ansible"
|
||||
url: https://docs.ansible.com/projects/ansible/latest/search.html?q={QUERY}&check_keywords=yes&area=default
|
||||
- title: Podman
|
||||
shortcut: "@podman"
|
||||
url: https://docs.podman.io/en/latest/search.html?q={QUERY}
|
||||
- title: Podman Compose
|
||||
shortcut: "@podcompose"
|
||||
url: https://docs.podman.io/en/latest/search.html?q={QUERY}
|
||||
- title: Elixir
|
||||
shortcut: "@elixir"
|
||||
url: https://hexdocs.pm/?packages=elixir%3A1.20.2%2Ceex%3A1.20.2%2Cex_unit%3A1.20.2%2Ciex%3A1.20.2%2Clogger%3A1.20.2%2Cmix%3A1.20.2&q={QUERY}
|
||||
- title: Elixir Phoenix
|
||||
shortcut: "@exphoenix"
|
||||
url: https://hexdocs.pm/?q={QUERY}&packages=plug%3Alatest%2Cphoenix%3Alatest%2Cphoenix_html%3Alatest%2Cphoenix_live_view%3Alatest%2Cphoenix_pubsub%3Alatest%2Cphoenix_template%3Alatest
|
||||
- title: Javascript
|
||||
shortcut: "@js"
|
||||
shortcut: https://javascript.info/search?query={QUERY}
|
||||
- title: MDN
|
||||
shortcut: "@mdn"
|
||||
url: https://developer.mozilla.org/en-US/search?q={QUERY}
|
||||
- title: PHP
|
||||
shortcut: "@php"
|
||||
url: https://www.php.net/search.php#gsc.tab=0&gsc.q={QUERY}&gsc.sort=
|
||||
- title: PostgreSQL
|
||||
shortcut: "@pgsql"
|
||||
url: https://www.postgresql.org/search/?q={QUERY}
|
||||
- title: MySQL
|
||||
shortcut: "@mysql"
|
||||
url: https://dev.mysql.com/doc/search/?q={QUERY}
|
||||
- title: Julia
|
||||
shortcut: "@julia"
|
||||
url: https://docs.julialang.org/en/v1/?q={QUERY}
|
||||
- title: Gitea
|
||||
shortcut: "@gitea"
|
||||
url: https://docs.gitea.com/search/?q={QUERY}
|
||||
- title: Git
|
||||
shortcut: "@git"
|
||||
url: https://git-scm.com/search/results?search={QUERY}&language=en
|
||||
- title: Elixir Phoenix
|
||||
shortcut: "@exphoenix"
|
||||
url: https://hexdocs.pm/?q={QUERY}&packages=plug%3Alatest%2Cphoenix%3Alatest%2Cphoenix_html%3Alatest%2Cphoenix_live_view%3Alatest%2Cphoenix_pubsub%3Alatest%2Cphoenix_template%3Alatest
|
||||
# @TODO add more documentation searches
|
||||
- type: group
|
||||
widgets:
|
||||
- type: clock
|
||||
hour-format: 24h
|
||||
timezones:
|
||||
- timezone: {{ glance.timezone.id}}
|
||||
label: {{ glance.timezone.name }}
|
||||
- type: weather
|
||||
units: metric
|
||||
hour-format: 24h
|
||||
location: {{ glance.weather_loc }}
|
||||
columns:
|
||||
- size: small
|
||||
widgets:
|
||||
- type: calendar
|
||||
first-day-of-week: sunday
|
||||
- type: bookmarks
|
||||
groups:
|
||||
- title: strat
|
||||
links:
|
||||
- title: The New Oil
|
||||
url: https://thenewoil.org/en/
|
||||
- title: Resilient by Design
|
||||
url: https://theanarchistlibrary.org/library/the-techno-anarchist-resilient-by-design
|
||||
- title: complang dox
|
||||
links:
|
||||
- name: Raspberry Pi
|
||||
url: https://www.raspberrypi.com/documentation/
|
||||
- name: Arduino
|
||||
url: https://docs.arduino.cc/
|
||||
- name: NASM x86 Assembly
|
||||
url: https://www.tutorialspoint.com/assembly_programming/index.htm
|
||||
- name: WASM
|
||||
url: https://webassembly.org/docs/faq/
|
||||
- name: Linux Kernel
|
||||
url: https://www.kernel.org/doc/html/latest/index.html
|
||||
- name: Linux
|
||||
url: https://tldp.org/guides.html
|
||||
- name: Debian
|
||||
url: https://www.debian.org/doc/
|
||||
- name: Zig
|
||||
url: https://ziglang.org/documentation/
|
||||
- name: Rust
|
||||
url: https://doc.rust-lang.org/
|
||||
- name: Cargo
|
||||
url: https://doc.rust-lang.org/cargo/
|
||||
- name: C++
|
||||
url: https://learn.microsoft.com/en-us/cpp/
|
||||
- name: vcpkg
|
||||
url: https://learn.microsoft.com/en-us/vcpkg/
|
||||
- name: C#
|
||||
url: https://learn.microsoft.com/en-us/dotnet/csharp/
|
||||
- name: nuget
|
||||
url: https://learn.microsoft.com/en-us/nuget/
|
||||
- name: Python
|
||||
url: https://docs.python.org/
|
||||
- name: Python uv
|
||||
url: https://docs.astral.sh/uv/
|
||||
- name: Ansible
|
||||
url: https://docs.ansible.com/projects/ansible/latest/
|
||||
- name: Podman
|
||||
url: https://docs.podman.io/en/latest/
|
||||
- name: Podman Compose
|
||||
url: https://docs.podman.io/en/latest/markdown/podman-compose.1.html
|
||||
- name: Erlang
|
||||
url: https://www.erlang.org/docs.html
|
||||
- name: Elixir
|
||||
url: https://elixir-lang.org/docs.html
|
||||
- name: Hex
|
||||
url: https://hex.pm/docs/usage
|
||||
- name: Lua
|
||||
url: https://www.lua.org/docs.html
|
||||
- name: LuaRocks
|
||||
url: https://luarocks.org/docs
|
||||
- name: GDScript
|
||||
url: https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/index.html
|
||||
- name: Julia
|
||||
url: https://docs.julialang.org/
|
||||
- name: NodeJS
|
||||
url: https://nodejs.org/docs/latest/api/
|
||||
- name: NPMJS
|
||||
url: https://docs.npmjs.com/
|
||||
- name: Go
|
||||
url: https://go.dev/doc/
|
||||
- name: CSS
|
||||
url: https://www.w3.org/Style/CSS/Overview.en.html
|
||||
- name: HTML
|
||||
url: https://html.spec.whatwg.org/multipage/
|
||||
- name: Javascript
|
||||
url: https://javascript.info/
|
||||
- name: Javascript DOM
|
||||
url: https://dom.spec.whatwg.org/
|
||||
- name: JSON
|
||||
url: https://www.json.org/json-en.html
|
||||
- name: Client-Side Web Languages
|
||||
url: https://developer.mozilla.org/en-US/
|
||||
- name: PHP
|
||||
url: https://www.php.net/docs.php
|
||||
- name: PHP Composer
|
||||
url: https://getcomposer.org/doc/
|
||||
- name: SQL
|
||||
url: https://www.postgresql.org/docs/current/sql.html
|
||||
- name: SASS
|
||||
url: https://sass-lang.com/documentation/
|
||||
- name: YAML
|
||||
url: https://www.yaml.info/
|
||||
- name: TOML
|
||||
url: https://toml.io/en/
|
||||
- name: ActivityPub
|
||||
url: https://activitypub.rocks/
|
||||
- name: SuperCollider
|
||||
url: https://doc.sccode.org/
|
||||
- name: CSound
|
||||
url: https://csound.com/docs/manual/index.html
|
||||
- name: FAUST
|
||||
url: https://faustdoc.grame.fr/
|
||||
- name: regexp
|
||||
url: https://regexbox.com/cheatsheet
|
||||
- title: warez dox
|
||||
links:
|
||||
- name: glance
|
||||
url: https://github.com/glanceapp/glance/tree/main/docs
|
||||
- name: Nextcloud
|
||||
url: https://docs.nextcloud.com/
|
||||
- name: Wireguard
|
||||
url: https://www.wireguard.com/#conceptual-overview
|
||||
- name: Headscale
|
||||
url: https://docs.headscale.org/
|
||||
- name: Tailscale
|
||||
url: https://tailscale.com/docs
|
||||
- name: Gitea
|
||||
url: https://docs.gitea.com/
|
||||
- name: OpenGist
|
||||
url: https://opengist.io/docs/
|
||||
- name: Caddy
|
||||
url: https://caddyserver.com/docs/
|
||||
- name: MySQL
|
||||
url: https://dev.mysql.com/doc/
|
||||
- name: Certbot
|
||||
url: https://eff-certbot.readthedocs.io/en/stable/
|
||||
- name: git
|
||||
url: https://git-scm.dev/doc
|
||||
# - title: api
|
||||
# - title: src
|
||||
# - title: warez
|
||||
- size: full
|
||||
widgets:
|
||||
- type: split-column
|
||||
widgets:
|
||||
- type: rss
|
||||
title: technoscience
|
||||
style: detailed-list
|
||||
collapse-after: 5
|
||||
feeds:
|
||||
- url: https://feeds.arstechnica.com/arstechnica/features
|
||||
title: arstechnica
|
||||
- url: https://rss.slashdot.org/Slashdot/slashdotMain
|
||||
title: slashdot
|
||||
- url: https://torrentfreak.com/feed/
|
||||
title: torrentfreak
|
||||
- url: https://blog.p2pfoundation.net/feed/
|
||||
title: p2p foundation
|
||||
- url: https://www.wired.com/feed/category/backchannel/latest/rss
|
||||
title: wired
|
||||
- url: https://www.quantamagazine.org/feed/
|
||||
title: quanta
|
||||
- url: https://www.sciencedaily.com/rss/matter_energy/telecommunications.xml
|
||||
title: scidaily - telecomms
|
||||
- url: https://www.sciencedaily.com/rss/computers_math/quantum_computers.xml
|
||||
title: scidaily - quancomp
|
||||
- url: https://www.sciencedaily.com/rss/matter_energy/engineering_and_construction.xml
|
||||
title: scidaily - engi
|
||||
- url: https://www.sciencedaily.com/rss/matter_energy/energy_and_resources.xml
|
||||
title: scidaily - energy & fuel
|
||||
- url: https://www.sciencedaily.com/rss/earth_climate/energy.xml
|
||||
title: scidaily - climate change
|
||||
- url: https://www.sciencedaily.com/rss/earth_climate/global_warming.xml
|
||||
title: scidaily - global warming
|
||||
- url: https://www.sciencedaily.com/rss/earth_climate/sustainability.xml
|
||||
title: scidaily - sustainability
|
||||
- url: https://www.sciencedaily.com/rss/computers_math/computer_programming.xml
|
||||
title: scidaily - compprog
|
||||
- url: https://www.sciencedaily.com/rss/computers_math/information_technology.xml
|
||||
title: scidaily - infotech
|
||||
- url: https://phys.org/rss-feed/biology-news/ecology/
|
||||
title: phys - ecology
|
||||
- type: rss
|
||||
title: politics
|
||||
style: detailed-list
|
||||
collapse-after: 5
|
||||
feeds:
|
||||
- url: https://www.democracynow.org/democracynow.rss
|
||||
title: democracy now
|
||||
- url: https://www.nakedcapitalism.com/feed
|
||||
title: naked capitalism
|
||||
- url: https://www.thenews.coop/feed/
|
||||
title: co-operative news
|
||||
- url: http://feeds.propublica.org/propublica/main
|
||||
title: propublica
|
||||
- url: https://unicornriot.ninja/feed/rss/
|
||||
title: unicorn riot
|
||||
- url: https://crimethinc.com/feed
|
||||
title: crimethinc
|
||||
- url: https://anarchistnews.org/rss.xml
|
||||
title: anarchist news
|
||||
- type: rss
|
||||
title: misc
|
||||
style: detailed-list
|
||||
collapse-after: 5
|
||||
feeds:
|
||||
- url: https://www.radicalphilosophy.com/feed
|
||||
title: radical philosophy
|
||||
- url: http://spectrejournal.com/feed/rss
|
||||
title: spectre
|
||||
- url: https://nautil.us/feed
|
||||
title: nautilus
|
||||
- url: https://theconversation.com/us/home-page/articles.atom
|
||||
title: the conversation
|
||||
- url: https://thebaffler.com/latest/feed
|
||||
title: the baffler
|
||||
- type: videos
|
||||
style: horizontal-cards
|
||||
channels:
|
||||
- UCjEDZ_R_ypSc-MUBRkiW1lw
|
||||
- UCIZ5ZOeiXYbmKTl_85ghNPw
|
||||
- UCdcemy56JtVTrsFIOoqvV8g
|
||||
- UCSkzHxIcfoEr69MWBdo0ppg
|
||||
- UCW6TXMZ5Pq6yL6_k5NZ2e0Q
|
||||
- UC4a-Gbdw7vOaccHmFo40b9g
|
||||
- UCwbyKKmjVdCpWzZZY-WnajA
|
||||
- UCMMBpWfWUd3xlcOxrot_neA
|
||||
- UCJXa3_WNNmIpewOtCHf3B0g
|
||||
- UCmfF7JZv26UUKyRedViGIlw
|
||||
- UCEmQRq5bxIUNGvAWj41AoaA
|
||||
- UCHkYOD-3fZbuGhwsADBd9ZQ
|
||||
- UCHa8J-xnRYOg5VuudfWpBgg
|
||||
- UCJZv4d5rbIKd4QHMPkcABCw
|
||||
- UCZUyPT9DkJWmS_DzdOi7RIA
|
||||
- UChbS_z6KHQiIu9et38O37eQ
|
||||
- UCxX9wt5FWQUAAz4UrysqK9A
|
||||
- UCX6b17PVsYBQ0ip5gyeme-Q
|
||||
- UCk0fGHsCEzGig-rSzkfCjMw
|
||||
- UCYO_jab_esuFRV4b17AJtAw
|
||||
- UChKIQpndVpX1ung-7IkGhzA
|
||||
- UCaM7SQvF5q9sz4NgL16PNRA
|
||||
- UC7pdnrWVj8eDfCI0bRe_0kQ
|
||||
- UCtuXekfqj-paqsxtqVNCC2A
|
||||
- UCgkjg1UbcQZHW40IO1BEt5A
|
||||
- UCGKEMK3s-ZPbjVOIuAV8clQ
|
||||
- UCbiGcwDWZjz05njNPrJU7jA
|
||||
- UC6biysICWOJ-C3P4Tyeggzg
|
||||
- UCbi3ei431gvBpgZ3R-_Wk5Q
|
||||
- UCA5yXa0rDsGaJFOuj6pxw1w
|
||||
- UCDG73pGqESS1XcEVY_0xwWw
|
||||
- UCR2uRTQ53V_egXKFflMMaaw
|
||||
- UCzGUT9PjV3SMBwjWXUYh4HA
|
||||
- name: services
|
||||
columns:
|
||||
- size: full
|
||||
widgets:
|
||||
- type: docker-containers
|
||||
title: status
|
||||
hide-by-default: false
|
||||
@@ -0,0 +1,9 @@
|
||||
db-uri: {{ gist.db.type + "://" + mysql.users.admin.username + ":" + mysql.users.admin.password + "@localhost:3306/" + mysql.users.admin.databases.opengist.name }}
|
||||
{% if mode == "dev" %}
|
||||
log-level: debug
|
||||
{% else %}
|
||||
log-level: info
|
||||
{% endif %}
|
||||
custom.static-links:
|
||||
- name: Playbooks
|
||||
path: {{ "https://" + gitea.subdomain + "." + web_fqdn + "/admin/skato-ansible" }}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"TCP": {
|
||||
<% if mode == "prod" %>
|
||||
"443": {
|
||||
"HTTPS": true
|
||||
}
|
||||
<% elif mode == "dev" or tailscale.scheme == "http" %>
|
||||
"80": {
|
||||
"HTTPS": false
|
||||
}
|
||||
<% endif %>
|
||||
},
|
||||
"Web": {
|
||||
<% if mode == "prod" %>
|
||||
"${TS_CERT_DOMAIN}:443": {
|
||||
"Handlers": {
|
||||
"/": {
|
||||
"Proxy": "http://localhost:8080"
|
||||
}
|
||||
}
|
||||
}
|
||||
<% elif mode == "dev" or tailscale.scheme == "http" %>
|
||||
"${TS_CERT_DOMAIN}:80": {
|
||||
"Handlers": {
|
||||
"/": {
|
||||
"Proxy": "http://localhost:8080"
|
||||
}
|
||||
}
|
||||
}
|
||||
<% endif %>
|
||||
},
|
||||
"AllowFunnel": {
|
||||
<% if mode == "prod" %>
|
||||
"${TS_CERT_DOMAIN}:443": false
|
||||
<% elif mode == "dev" or tailscale.scheme == "http" %>
|
||||
"${TS_CERT_DOMAIN}:80": false
|
||||
<% endif %>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user