mono

command module
v0.0.0-...-e1de4b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 6 Imported by: 0

README

mono

before: https://github.com/nerikeshi-k/benienma

概略

  • /_/<blob_name> でGCSにある画像を配信する
  • 一度配信した画像はしばらくキャッシュする
  • /w=400/<blob_name> で最大横幅が400になるように縮小させて画像を配信する
  • /.../<blob_name.png>.webp のように拡張子を追加するように指定するとWebP形式で画像を配信する(他、jpegとpngも)

ビルド

開発版ビルド

go build

リリースビルド

go build --tags=prod

実行

./mono --conf=<config_json_path>

GOOGLE_APPLICATION_CREDENTIALS 環境変数にGCSキーのパスが指定されている必要があります。
詳しくは https://cloud.google.com/docs/authentication/production?hl=ja

Docker

ビルド
$ docker build . -t mono:latest
実行

/etc/* のexampleファイルを参考に設定ファイルとクレデンシャルを配置してから

$ docker run -it -v ./etc:/etc/mono mono

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL