Allow Gogs server on a subdirectory

This commit is contained in:
Jonathan Duck 2016-01-13 04:31:16 -08:00
parent c60b7eddee
commit 007a3462ca
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ REMOTE_CONFIG=https://gogs.hooli.com?open=false
The following is the standard URI connection scheme:
```
scheme://host[:port][?options]
scheme://host[:port][/path][?options]
```
The components of this string are:
@ -20,6 +20,7 @@ The components of this string are:
* `scheme` server protocol `http` or `https`.
* `host` server address to connect to. The default value is github.com if not specified.
* `:port` optional. The default value is :80 if not specified.
* `/path` optional. The default value is the root directory if not specified.
* `?options` connection specific options.
## Gogs options

View file

@ -30,7 +30,6 @@ func Load(env envconfig.Env) *Gogs {
log.Fatalln("unable to parse remote dsn. %s", err)
}
params := url_.Query()
url_.Path = ""
url_.RawQuery = ""
// create the Githbub remote using parameters from