Commit 0e3f18b2 authored by Lee Brown's avatar Lee Brown

Merge branch 'master' of gitlab.com:geeks-accelerator/oss/saas-starter-kit

parents 44ac98a1 44e0a361
This diff is collapsed.
......@@ -61,7 +61,7 @@ one `docker-compose.yaml` file that is shared between all services.
4. Open the Swagger UI.
Navigate your browser to [http://localhost:3001/swagger](http://localhost:3001/docs).
Navigate your browser to [http://localhost:3001/docs](http://localhost:3001/docs).
5. Signup a new account.
......
......@@ -348,6 +348,8 @@ func main() {
// Init redirect middleware to ensure all requests go to the primary domain contained in the base URL.
if primaryServiceHost != "127.0.0.1" && primaryServiceHost != "localhost" {
panic(primaryServiceHost)
redirect := mid.DomainNameRedirect(mid.DomainNameRedirectConfig{
RedirectConfig: mid.RedirectConfig{
Code: http.StatusMovedPermanently,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment