Merge pull request #1413 from Duckbrain/master
Allow Gogs server on a subdirectory
This commit is contained in:
commit
462a44d0cf
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ REMOTE_CONFIG=https://gogs.hooli.com?open=false
|
||||||
The following is the standard URI connection scheme:
|
The following is the standard URI connection scheme:
|
||||||
|
|
||||||
```
|
```
|
||||||
scheme://host[:port][?options]
|
scheme://host[:port][/path][?options]
|
||||||
```
|
```
|
||||||
|
|
||||||
The components of this string are:
|
The components of this string are:
|
||||||
|
@ -20,6 +20,7 @@ The components of this string are:
|
||||||
* `scheme` server protocol `http` or `https`.
|
* `scheme` server protocol `http` or `https`.
|
||||||
* `host` server address to connect to. The default value is github.com if not specified.
|
* `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.
|
* `: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.
|
* `?options` connection specific options.
|
||||||
|
|
||||||
## Gogs options
|
## Gogs options
|
||||||
|
|
|
@ -30,7 +30,6 @@ func Load(env envconfig.Env) *Gogs {
|
||||||
log.Fatalln("unable to parse remote dsn. %s", err)
|
log.Fatalln("unable to parse remote dsn. %s", err)
|
||||||
}
|
}
|
||||||
params := url_.Query()
|
params := url_.Query()
|
||||||
url_.Path = ""
|
|
||||||
url_.RawQuery = ""
|
url_.RawQuery = ""
|
||||||
|
|
||||||
// create the Githbub remote using parameters from
|
// create the Githbub remote using parameters from
|
||||||
|
|
Loading…
Add table
Reference in a new issue