aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin/config.tmpl
blob: 048740e617b1e5d3a69baaa2b90f7ec0dd4646c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="gogs-body" class="container" data-page="admin">
    {{template "admin/nav" .}}
    <div id="gogs-admin-container" class="col-md-9">
        <div class="panel panel-default">
            <div class="panel-heading">
                Server Configuration
            </div>

            <div class="panel-body">
                <div><b>Application Name:</b> {{AppName}}</div>
                <div><b>Application Version:</b> {{AppVer}}</div>
                <div><b>Application URL:</b> {{.AppUrl}}</div>
                <div><b>Domain:</b> {{.Domain}}</div>
                <hr/>
                <div><b>Run User:</b> {{.RunUser}}</div>
                <div><b>Run Mode:</b> {{.RunMode}}</div>
                <hr/>
                <div><b>Repository Root Path:</b> {{.RepoRootPath}}</div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                Database Configuration
            </div>

            <div class="panel-body">
                <div><b>Type:</b> {{.DbCfg.Type}}</div>
                <div><b>Host:</b> {{.DbCfg.Host}}</div>
                <div><b>Name:</b> {{.DbCfg.Name}}</div>
                <div><b>User:</b> {{.DbCfg.User}}</div>
                <div><b>SslMode:</b> {{.DbCfg.SslMode}} (for "postgres" only)</div>
                <div><b>Path:</b> {{.DbCfg.Path}} (for "sqlite3" only)</div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                Service Configuration
            </div>

            <div class="panel-body">
                <div><b>Register Email Confirmation:</b> <i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></div>
                <div><b>Disenable Registeration:</b> <i class="fa fa{{if .Service.DisenableRegisteration}}-check{{end}}-square-o"></i></div>
                <div><b>Require Sign In View:</b> <i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></div>
                <div><b>Enable Cache Avatar:</b> <i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></div>
                <hr/>
                <div><b>Active Code Lives:</b> {{.Service.ActiveCodeLives}} minutes</div>
                <div><b>Reset Password Code Lives:</b> {{.Service.ResetPwdCodeLives}} minutes</div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                Mailer Configuration
            </div>

            <div class="panel-body">
                <div><b>Enabled:</b> <i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></div>
                <div><b>Name:</b> {{.Mailer.Name}}</div>
                <div><b>Host:</b> {{.Mailer.Host}}</div>
                <div><b>User:</b> {{.Mailer.User}}</div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                Cache Configuration
            </div>

            <div class="panel-body">
                <div><b>Cache Adapter:</b> {{.CacheAdapter}}</div>
                <div><b>Cache Config:</b></div>
                <div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                Session Configuration
            </div>

            <div class="panel-body">
                <div><b>Session Provider:</b> {{.SessionProvider}}</div>
                <div><b>Cookie Name:</b> {{.SessionConfig.CookieName}}</div>
                <div><b>Enable Set Cookie:</b> <i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></div>
                <div><b>GC Interval Time:</b> {{.SessionConfig.GcIntervalTime}} seconds</div>
                <div><b>Session Life Time:</b> {{.SessionConfig.SessionLifeTime}} seconds</div>
                <div><b>HTTPS Only:</b> <i class="fa fa{{if .SessionConfig.CookieSecure}}-check{{end}}-square-o"></i></div>
                <div><b>Cookie Life Time:</b> {{.SessionConfig.CookieLifeTime}} seconds</div>
                <div><b>Session ID Hash Function:</b> {{.SessionConfig.SessionIDHashFunc}}</div>
                <div><b>Session ID Hash Key:</b> {{.SessionConfig.SessionIDHashKey}}</div>
                <div><b>Provider Config:</b> {{.SessionConfig.ProviderConfig}}</div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                Picture Configuration
            </div>

            <div class="panel-body">
                <div><b>Picture Service:</b> {{.PictureService}}</div>
                <div><b>Picture Root Path:</b> {{.PictureRootPath}}</div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                Log Configuration
            </div>

            <div class="panel-body">
                <div><b>Log Mode:</b> {{.LogMode}}</div>
                <div><b>Log Config:</b></div>
                <div style="padding-top: 5px;"><pre>{{.LogConfig}}</pre></div>
                
            </div>
        </div>
    </div>
</div>
{{template "base/footer" .}}