Skip to content

Instantly share code, notes, and snippets.

@RyanWor
RyanWor / gist:876b7f20b730176851ebcf35c10d6f81
Created October 10, 2022 22:10
Chromebox Firmware Update
sudo apt update && sudo apt install curl -y && cd; curl -L -O http://mrchromebox.tech/setup-kodi.sh && sudo bash setup-kodi.sh
@RyanWor
RyanWor / registry.conf
Last active December 1, 2021 23:05 — forked from marcelo-ochoa/registry.conf
Docker private registry frontend definition
upstream docker-registry {
server 10.0.0.15:5000;
server 10.0.0.150:5000;
}
## Set a variable to help us decide if we need to add the
## 'Docker-Distribution-Api-Version' header.
## The registry always sets this header.
## In the case of nginx performing auth, the header is unset
## since nginx is auth-ing before proxying.
@RyanWor
RyanWor / nginx.conf
Created December 1, 2021 23:03 — forked from marcelo-ochoa/nginx.conf
A simple nginx.conf with additions to log real-IP if it behind a load balancer
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
@RyanWor
RyanWor / portainer.conf
Last active December 1, 2021 23:04 — forked from marcelo-ochoa/portainer.conf
Portainer.IO site frontend definition
upstream portainer {
server 10.0.0.15:9000;
server 10.0.0.150:9000;
}
server {
listen 80;
server_name portainer.ryann.dev;
location / {
@RyanWor
RyanWor / docker-compose-nginx.yml
Last active December 1, 2021 23:39 — forked from marcelo-ochoa/docker-compose-nginx.yml
A docker stack deploy for NGINX working as frontend for Portainer.IO and docker private registry
version: '3.6'
services:
server:
image: nginx
hostname: www.ryann.dev
networks:
- lb_network
ports:
- "80:80"
@RyanWor
RyanWor / docker-compose-portainer.yml
Created December 1, 2021 22:59 — forked from marcelo-ochoa/docker-compose-portainer.yml
A docker compose stack for Portainer.IO and agents using GlusterFS volume driver plugin
version: '3.6'
services:
agent:
image: portainer/agent
environment:
AGENT_CLUSTER_ADDR: tasks.portainer_agent
# AGENT_PORT: 9001
# LOG_LEVEL: debug
volumes:
@RyanWor
RyanWor / docker-compose-registry.yml
Created December 1, 2021 22:59 — forked from marcelo-ochoa/docker-compose-registry.yml
A docker stack for deploying a private docker registry and UI using GlusterFS volume plugin driver
version: '3.6'
services:
registry:
image: registry:2
ports:
- "5000:5000"
networks:
- lb_network
volumes:
@RyanWor
RyanWor / registry-ui.conf
Last active December 1, 2021 22:29 — forked from marcelo-ochoa/registry-ui.conf
Config file to define a frontend for registry UI
upstream registry-ui {
server 10.0.0.15:5008;
server 10.0.0.150:5008;
}
server {
listen 80;
server_name registry-ui.ryann.dev;
location / {
server {
listen 80 default_server;
root /config/www/Dashboard;
index index.html index.htm index.php;
server_name _;
client_max_body_size 0;
location / {
try_files $uri $uri/ /index.html /index.php?$args =404;