Add index.korhonen.cc and aur repository

This commit is contained in:
Marko Korhonen 2020-12-16 21:32:24 +02:00
parent 05572ab69c
commit 03eb9ab6e7
3 changed files with 42 additions and 30 deletions

View file

@ -0,0 +1,33 @@
version: "3"
services:
nginx:
image: fraoustin/fancyindex
container_name: index.korhonen.cc
environment:
- DISABLE_AUTH=true
- CONTAINER_TIMEZONE="Europe/Helsinki"
volumes:
- /docker/index.korhonen.cc:/share
networks:
- proxy
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.index-redirect.entrypoints=http"
- "traefik.http.routers.index-redirect.rule=Host(`index.korhonen.cc`)"
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.index-redirect.middlewares=http2https"
- "traefik.http.routers.index.entrypoints=https"
- "traefik.http.routers.index.rule=Host(`index.korhonen.cc`)"
- "traefik.http.routers.index.tls=true"
- "traefik.http.routers.index.tls.certresolver=http"
- "traefik.http.routers.index.service=index"
- "traefik.docker.network=proxy"
- "traefik.http.services.index.loadbalancer.server.port=80"
networks:
proxy:
external: true

View file

@ -1,30 +0,0 @@
version: "3"
services:
site:
image: nginx:alpine
container_name: marko.korhonen.cc
volumes:
- /docker/marko.korhonen.cc:/usr/share/nginx/html:ro
networks:
- proxy
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.marko-redirect.entrypoints=http"
- "traefik.http.routers.marko-redirect.rule=Host(`marko.korhonen.cc`)"
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.marko-redirect.middlewares=http2https"
- "traefik.http.routers.marko.entrypoints=https"
- "traefik.http.routers.marko.rule=Host(`marko.korhonen.cc`)"
- "traefik.http.routers.marko.tls=true"
- "traefik.http.routers.marko.tls.certresolver=http"
- "traefik.http.routers.marko.service=marko"
- "traefik.docker.network=proxy"
- "traefik.http.services.marko.loadbalancer.server.port=80"
networks:
proxy:
external: true

View file

@ -9,6 +9,15 @@ Architecture = auto
LocalFileSigLevel = Optional
CacheDir = /var/cache/pacman/pkg
[korhonen-aur]
{%@@ if profile == "Moria" @@%}
Server = file:///docker/index.korhonen.cc/repo/os/linux/arch/x86_64/korhonen-aur
CleanMethod=KeepCurrent
CacheDir=/docker/index.korhonen.cc/repo/os/linux/arch/x86_64/korhonen-aur
{%@@ else @@%}
Server = https://index.korhonen.cc/repo/os/linux/arch/x86_64/korhonen-aur
{%@@ endif @@%}
[core]
Include = /etc/pacman.d/pacserve
Include = /etc/pacman.d/mirrorlist