Split base URL to protocol and domain

O01eg
Apr 22, 2022, 7:16 AM
RAXDAROSIIJBXZHCH3RKJU5N4VED5O36ZOIEC62C7G6NKLL6UEFAC

Dependencies

  • [2] ZRU62WXD Send email with change game password link
  • [3] TRBYOQBI Check CSRF and user existence
  • [4] HZDCKIXQ Use constants for templates
  • [5] 4JK5O45H Start support for XMPP game password change
  • [6] I7JG43BJ Rename cache to use yet another
  • [7] DGGFYSEG Use non-escaped template for Atom XML
  • [8] 7R6HAATP Optional publish static files if use reverse-proxy
  • [9] ZE5UFPX4 Add TTL cache for CSRF
  • [10] CMA5SKJ3 Copy turns Atom generator
  • [11] 3HT5CE6S Manage TTL duration in config
  • [12] WVHXYKCV Add postgresql pools
  • [13] 556ZESEO Add RSS for new games
  • [14] Z3SYSC25 Add SMTP configuration
  • [15] 5UYVIBUM Update game password from page
  • [16] ED42QYMU Fix template name
  • [17] I6SOPEQF Create and store reset password token
  • [*] EVP2FSBH Split index page
  • [*] 4MZ4VIR7 Initial commit
  • [*] BCXEUKX6 Add config, static files and web server

Change contents

  • replacement in src/pages/query_reset_game_pwd.rs at line 180
    [3.1100][3.1100:1179]()
    let token_url = format!("{}reset-game-pwd-{}.html", data.base_url, token);
    [3.1100]
    [3.1179]
    let token_url = format!(
    "{}://{}/reset-game-pwd-{}.html",
    data.base_proto, data.base_domain, token
    );
  • replacement in src/pages/mod.rs at line 34
    [3.173][3.21:47]()
    pub base_url: String,
    [3.173]
    [2.968]
    pub base_proto: String,
    pub base_domain: String,
  • replacement in src/pages/atom/turns.rs at line 94
    [3.3039][3.3039:3088]()
    selflink: data.base_url.to_string(),
    [3.3039]
    [3.3088]
    selflink: format!("{}://{}/", data.base_proto, data.base_domain),
  • replacement in src/pages/atom/games.rs at line 96
    [3.2752][3.2752:2801]()
    selflink: data.base_url.to_string(),
    [3.2752]
    [3.2801]
    selflink: format!("{}://{}/", data.base_proto, data.base_domain),
  • replacement in src/main.rs at line 49
    [3.202][3.3600:3618]()
    base_url,
    [3.202]
    [2.1084]
    base_proto,
    base_domain,
  • replacement in src/main.rs at line 137
    [3.231][3.3900:3918]()
    base_url,
    [3.231]
    [2.1221]
    base_proto,
    base_domain,
  • replacement in src/config.rs at line 34
    [3.265][3.3996:4022]()
    pub base_url: String,
    [3.265]
    [3.460]
    pub base_proto: String,
    pub base_domain: String,