command
module
Version:
v0.0.0-...-e1de4b4
Opens a new window with list of versions in this module.
Published: Nov 30, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.