diff --git a/nitter.example.conf b/nitter.example.conf index 310e162..dff750e 100644 --- a/nitter.example.conf +++ b/nitter.example.conf @@ -5,7 +5,7 @@ https = false # disable to enable cookies when not using https httpMaxConnections = 100 staticDir = "./public" title = "nitter" -hostname = "twitter.076.ne.jp" +hostname = "twitter.owacon.moe" [Cache] listMinutes = 240 # how long to cache list info (not the tweets, so keep it high) @@ -36,11 +36,11 @@ tokenCount = 10 # Change default preferences here, see src/prefs_impl.nim for a complete list [Preferences] theme = "Loli" -replaceTwitter = "twitter.076.ne.jp" -replaceYouTube = "youtube.076.ne.jp" +replaceTwitter = "twitter.owacon.moe" +replaceYouTube = "youtube.owacon.moe" replaceReddit = "teddit.net" replaceInstagram = "" -replaceOdysee = "odysee.076.ne.jp" +replaceOdysee = "odysee.owacon.moe" proxyVideos = true hlsPlayback = false infiniteScroll = false diff --git a/public/md/about.md b/public/md/about.md index 8d9483c..4ca62e4 100644 --- a/public/md/about.md +++ b/public/md/about.md @@ -4,7 +4,7 @@ Nitter is a free and open source alternative Twitter front-end focused on privacy and performance. The source is available on GitHub at -テクニカル諏訪子に編集したソースコードはこちらで御座います→ +テクニカル諏訪子に編集したソースコードはこちらで御座います→ * No JavaScript or ads * All requests go through the backend, client never talks to Twitter diff --git a/src/config.nim b/src/config.nim index 4572773..fd1bff2 100644 --- a/src/config.nim +++ b/src/config.nim @@ -22,7 +22,7 @@ proc getConfig*(path: string): (Config, parseCfg.Config) = staticDir: cfg.get("Server", "staticDir", "./public"), title: cfg.get("Server", "title", "076ツイッター"), - hostname: cfg.get("Server", "hostname", "twitter.076.ne.jp"), + hostname: cfg.get("Server", "hostname", "twitter.owacon.moe"), # Cache listCacheTime: cfg.get("Cache", "listMinutes", 120), @@ -34,8 +34,8 @@ proc getConfig*(path: string): (Config, parseCfg.Config) = redisMaxConns: cfg.get("Cache", "redisMaxConnections", 30), redisPassword: cfg.get("Cache", "redisPassword", ""), - replaceYouTube: cfg.get("Preferences", "replaceYouTube", "youtube.076.ne.jp"), - replaceOdysee: cfg.get("Preferences", "replaceOdysee", "odysee.076.ne.jp"), + replaceYouTube: cfg.get("Preferences", "replaceYouTube", "youtube.owacon.moe"), + replaceOdysee: cfg.get("Preferences", "replaceOdysee", "odysee.owacon.moe"), # Config hmacKey: cfg.get("Config", "hmacKey", "secretkey"), diff --git a/src/prefs_impl.nim b/src/prefs_impl.nim index 12509a0..e89c311 100644 --- a/src/prefs_impl.nim +++ b/src/prefs_impl.nim @@ -95,25 +95,25 @@ genPrefs: "自動的にGIFの再生" "Link replacements (blank to disable)": - replaceTwitter(input, "twitter.076.ne.jp"): + replaceTwitter(input, "twitter.owacon.moe"): "ツイッター → Nitter" - placeholder: "twitter.076.ne.jp" + placeholder: "twitter.owacon.moe" - replaceYouTube(input, "youtube.076.ne.jp"): + replaceYouTube(input, "youtube.owacon.moe"): "ユーチューブ → Invidious" - placeholder: "youtube.076.ne.jp" + placeholder: "youtube.owacon.moe" - replaceReddit(input, "reddit.076.ne.jp"): + replaceReddit(input, "reddit.owacon.moe"): "Reddit → Teddit/Libreddit" - placeholder: "reddit.076.ne.jp" + placeholder: "reddit.owacon.moe" - replaceInstagram(input, "instagram.076.ne.jp"): + replaceInstagram(input, "instagram.owacon.moe"): "インスタグラム → Bibliogram" - placeholder: "instagram.076.ne.jp" + placeholder: "instagram.owacon.moe" - replaceOdysee(input, "odysee.076.ne.jp"): + replaceOdysee(input, "odysee.owacon.moe"): "オディシー → Librarian" - placeholder: "odysee.076.ne.jp" + placeholder: "odysee.owacon.moe" iterator allPrefs*(): Pref = for k, v in prefList: