1. 28 Jun, 2018 1 commit
  2. 21 Jun, 2018 1 commit
    • Jesse Hallam's avatar
      MM-10370: serve subpath (#8968) · dd35ad43
      Jesse Hallam authored
      * factor out GetSubpathFromConfig
      * mv web/subpath.go to utils/subpath.go
      * serve up web, api and ws on /subpath if configured
      * pass config to utils.RenderWeb(App)?Error
      This allows the methods to extract the configured subpath and redirect
      to the appropriate `/subpath/error` handler.
      * ensure GetSubpathFromConfig returns trailing slashes deterministically
      * fix error 404 handling
      * redirect /subpath to /subpath/
      This is necessary for the static handler to match, otherwise none of the
      registered routes find anything. This also makes it no longer necessary
      to add trailing slashes in the root router.
  3. 14 Jun, 2018 1 commit
    • Jesse Hallam's avatar
      MM-10367: rewrite subpath assets on startup (#8944) · f1064171
      Jesse Hallam authored
      Examine ServiceSettings.SiteURL on startup and rewrite assets
      accordingly if not in a development environment.
      Also export `mattermost config subpath` command to manually do same.
      This accompanies a webapp PR to use the updated `root.html` to define
      the necessary webpack asset path for dynamically loading assets.