diff --git a/README.md b/README.md index 8462eef6..160345b8 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,12 @@ Remark42 is a self-hosted, lightweight, and simple (yet functional) comment engi | --github-csec | REMARK_GITHUB_CSEC | | no | Github OAuth client secret | | --low-score | LOW_SCORE | `-5` | no | Low score threshold | | --critical-score | CRITICAL_SCORE | `-10` | no | Critical score threshold | +| --img-proxy | IMG_PROXY | `false` | no | Enable http->https proxy for images | | --dbg | DEBUG | `false` | no | debug mode | | --dev-password | DEV_PASSWD | | no | password for `dev` user | -**User has to provide secret key, can be any long and hard-to-guess string.** +**user has to provide secret key, can be any long and hard-to-guess string.** _all multi parameters separated by `,` in environment or repeated with command line key, like `--site=s1 --site=s2 ...`_ diff --git a/app/main.go b/app/main.go index b7205631..9554c7f5 100644 --- a/app/main.go +++ b/app/main.go @@ -123,7 +123,7 @@ func main() { DataService: dataService, Exporter: &exporter, WebRoot: opts.WebRoot, - ImageProxy: proxy.Image{Enabled: opts.ImageProxy, RoutePath: "/api/v1/img"}, + ImageProxy: proxy.Image{Enabled: opts.ImageProxy, RoutePath: "/api/v1/img", RemarkURL: opts.RemarkURL}, Authenticator: auth.Authenticator{ Admins: opts.Admins, SessionStore: sessionStore,