mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Refactor hostname to be a runtime option
Add a `hostname` field under Server in your conf file, see the updated nitter.conf in the repo for an example. The compile-time option (-d:hostname) is no longer used.
This commit is contained in:
parent
3218cc4069
commit
de62eedea5
19 changed files with 91 additions and 85 deletions
|
|
@ -2,7 +2,7 @@ import ../utils, ../prefs
|
|||
export utils, prefs
|
||||
|
||||
template cookiePrefs*(): untyped {.dirty.} =
|
||||
getPrefs(request.cookies.getOrDefault("preferences"))
|
||||
getPrefs(request.cookies.getOrDefault("preferences"), cfg.hostname)
|
||||
|
||||
template getPath*(): untyped {.dirty.} =
|
||||
$(parseUri(request.path) ? filterParams(request.params))
|
||||
|
|
|
|||
Loading…
Reference in a new issue