mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
Conflicts: modules/setting/setting.go Conflicts: templates/repo/release/list.tmpl templates/user/dashboard/dashboard.tmpl Conflicts: routers/repo/setting.go
This commit is contained in:
parent
4f74b4e657
commit
0055cbd365
91 changed files with 322 additions and 300 deletions
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<head{{if AppRootSubUrl}} data-suburl="{{AppRootSubUrl}}"{{end}}>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="author" content="Gogs - Go Git Service" />
|
||||
|
@ -9,27 +9,27 @@
|
|||
<meta name="_csrf" content="{{.CsrfToken}}" />
|
||||
{{if .Repository.IsGoget}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}}
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.png" />
|
||||
<link rel="shortcut icon" href="{{AppRootSubUrl}}/img/favicon.png" />
|
||||
|
||||
{{if CdnMode}}
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
|
||||
|
||||
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||
{{else}}
|
||||
<link rel="stylesheet" href="/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="{{AppRootSubUrl}}/css/font-awesome.min.css">
|
||||
|
||||
<script src="/ng/js/lib/jquery-1.11.1.min.js"></script>
|
||||
<script src="{{AppRootSubUrl}}/ng/js/lib/jquery-1.11.1.min.js"></script>
|
||||
{{end}}
|
||||
<!-- Stylesheet -->
|
||||
<link rel="stylesheet" href="/ng/css/ui.css">
|
||||
<link rel="stylesheet" href="/ng/css/gogs.css">
|
||||
<link rel="stylesheet" href="/ng/fonts/octicons.css">
|
||||
<link rel="stylesheet" href="/css/github.min.css">
|
||||
<link rel="stylesheet" href="{{AppRootSubUrl}}/ng/css/ui.css">
|
||||
<link rel="stylesheet" href="{{AppRootSubUrl}}/ng/css/gogs.css">
|
||||
<link rel="stylesheet" href="{{AppRootSubUrl}}/ng/fonts/octicons.css">
|
||||
<link rel="stylesheet" href="{{AppRootSubUrl}}/css/github.min.css">
|
||||
|
||||
<!-- JavaScript -->
|
||||
<script src="/ng/js/lib/tabs.js"></script>
|
||||
<script src="/ng/js/lib/lib.js"></script>
|
||||
<script src="/ng/js/gogs.js"></script>
|
||||
<script src="{{AppRootSubUrl}}/ng/js/lib/tabs.js"></script>
|
||||
<script src="{{AppRootSubUrl}}/ng/js/lib/lib.js"></script>
|
||||
<script src="{{AppRootSubUrl}}/ng/js/gogs.js"></script>
|
||||
|
||||
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue