From 2a48cc96826e08fe29cef0df44f1a3bbd0653f9e Mon Sep 17 00:00:00 2001 From: sattellite Date: Mon, 2 Nov 2020 08:57:00 +0300 Subject: [PATCH] use REMARK_URL in frontend templates --- frontend/comments.ejs | 2 +- frontend/counter.ejs | 2 +- frontend/index.ejs | 2 +- frontend/last-comments.ejs | 2 +- frontend/webpack.config.js | 12 ++++++++++++ 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/frontend/comments.ejs b/frontend/comments.ejs index caba10fc..fc713cd4 100644 --- a/frontend/comments.ejs +++ b/frontend/comments.ejs @@ -68,7 +68,7 @@ var remark_config = { site_id: query.site_id, - host: window.location.origin, + host: '<%= REMARK_URL %>' || window.location.origin, url: query.url }; diff --git a/frontend/counter.ejs b/frontend/counter.ejs index b0f63920..8e51ca10 100644 --- a/frontend/counter.ejs +++ b/frontend/counter.ejs @@ -39,7 +39,7 @@