missing remark bas url in img proxy

This commit is contained in:
Umputun
2018-05-18 10:45:32 -05:00
parent 12f3e1ca5c
commit dcbe184f55
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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 ...`_
+1 -1
View File
@@ -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,