Skip to content

Tibowl/KCCacheProxy

Repository files navigation

KanColle Cache Proxy

This is a local proxy meant to cache KC assets and bypass the gadget IP block. It can be preloaded from a cache dump (linked below). This will improve loading of assets on top of browser built-in cache.

Installation and setup

See Installation and setup for more information. If you still have problems, try in Chrome with the extension linked there and if you still have, you can ask for help in the reddit KC discord.

Docker usage

Config

hostname must be 0.0.0.0

{
  "hostname": "0.0.0.0",
}

Running

Download docker-compose.yaml or copy below code

---
services:
  kccp:
    container_name: kccp
    image: ghcr.io/hitomarukonpaku/kccacheproxy
    restart: unless-stopped
    ports:
      - 8080:8080
    volumes:
      - ./data:/data
      - ./cache:/cache

Open terminal in the same folder with above file then run

docker compose up -d

Preload

docker run --rm -v "./cache:/cache" ghcr.io/hitomarukonpaku/kccacheproxy preload

Update image version

docker pull ghcr.io/hitomarukonpaku/kccacheproxy
docker compose up -d

English Patch

KanColle-English-Patch-KCCP


Before running any below command, start kccp container

  • Add

    docker exec -it kccp node src/kce add
    docker restart kccp
  • Remove

    docker exec -it kccp node src/kce remove
    docker restart kccp
  • Toggle on/off

    docker exec -it kccp node src/kce toggle
    docker restart kccp

For developers

  • Redirect using config.serverIP

    curl --location 'http://127.0.0.1:8001/kcs2/resources/ship/full/0147_2230_gmqsmiszmftf.png?version=21'
  • Redirect using absolute url

    curl --location 'http://127.0.0.1:8001/https/w17k.kancolle-server.com/kcs2/resources/ship/full/0147_2230_gmqsmiszmftf.png?version=21'
  • Redirect using x-host header

    curl --location 'http://127.0.0.1:8001/kcs2/resources/ship/full/0147_2230_gmqsmiszmftf.png?version=21' \
    --header 'x-host: w17k.kancolle-server.com'

About

Local caching proxy for KanColle

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •