We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1946590 + 7543154 commit c35aadaCopy full SHA for c35aada
config/config.go
@@ -42,9 +42,6 @@ type Config struct {
42
AppName string
43
BaseUrl string
44
45
- Project string
46
- ProjectDocumentation string
47
- ProjectDownload string
48
ProjectExampleVideo string
49
50
JwtSecretKey string
@@ -138,9 +135,8 @@ type Config struct {
138
135
}
139
136
140
137
type PublicConfig struct {
141
- AppName string
142
- BaseUrl string
143
+ AppName string
+ BaseUrl string
144
EncodingEnabled bool
145
UploadEnabled bool
146
@@ -168,7 +164,6 @@ func (c Config) PublicConfig() PublicConfig {
168
164
return PublicConfig{
169
165
AppName: c.AppName,
170
166
BaseUrl: c.BaseUrl,
171
- Project: c.Project,
172
167
EncodingEnabled: *c.EncodingEnabled,
173
UploadEnabled: *c.UploadEnabled,
174
configdb/configdb.go
@@ -21,9 +21,6 @@ func Setup() {
21
config.ENV.AppName = getEnvDb(&setting.AppName, "VideoCMS")
22
config.ENV.BaseUrl = getEnvDb(&setting.BaseUrl, "http://127.0.0.1:3000")
23
24
- config.ENV.Project = getEnvDb(&setting.Project, "https://github.com/notfound")
25
- config.ENV.ProjectDocumentation = getEnvDb(&setting.ProjectDocumentation, "https://github.com/notfound")
26
- config.ENV.ProjectDownload = getEnvDb(&setting.ProjectDownload, "https://github.com/notfound")
27
config.ENV.ProjectExampleVideo = getEnvDb(&setting.ProjectExampleVideo, "notfound")
28
29
config.ENV.JwtSecretKey = getEnvDb(&setting.JwtSecretKey, randomstring.CookieFriendlyString(64))
controllers/PlayerController.go
@@ -179,7 +179,6 @@ func PlayerController(c echo.Context) error {
179
"Webhooks": string(rawWebhooks),
180
"StreamIsReady": streamIsReady,
181
"UUID": requestValidation.UUID,
182
- "PROJECTURL": config.ENV.Project,
183
"Folder": config.ENV.FolderVideoQualitysPub,
184
"JWT": tkn,
185
"AppName": config.ENV.AppName,
controllers/UpdateSettingsController.go
@@ -27,9 +27,6 @@ func UpdateSettings(c echo.Context) error {
setting.ID = validation.ID
setting.AppName = validation.AppName
setting.BaseUrl = validation.BaseUrl
30
- setting.Project = validation.Project
31
- setting.ProjectDocumentation = validation.ProjectDocumentation
32
- setting.ProjectDownload = validation.ProjectDownload
33
setting.ProjectExampleVideo = validation.ProjectExampleVideo
34
setting.JwtSecretKey = validation.JwtSecretKey
35
setting.JwtUploadSecretKey = validation.JwtUploadSecretKey
controllers/ViewIndexController.go
@@ -14,16 +14,12 @@ func ViewIndex(c echo.Context) error {
14
var link models.Link
15
if res := inits.DB.First(&link); res.Error != nil {
16
return c.Render(http.StatusOK, "index.html", echo.Map{
17
- "ExampleVideo": fmt.Sprintf("/%v", "notfound"),
18
- "AppName": config.ENV.AppName,
19
- "ProjectDocumentation": config.ENV.ProjectDocumentation,
20
- "ProjectDownload": config.ENV.ProjectDownload,
+ "ExampleVideo": fmt.Sprintf("/%v", "notfound"),
+ "AppName": config.ENV.AppName,
})
- "ExampleVideo": fmt.Sprintf("/%v", link.UUID),
+ "ExampleVideo": fmt.Sprintf("/%v", link.UUID),
models/Setting.go
@@ -7,13 +7,10 @@ type SettingValidation struct {
7
8
type Setting struct {
9
Model
10
- AppName string `validate:"required,min=1,max=120" gorm:"size:120;"`
11
- BaseUrl string `validate:"required,min=1,max=255" gorm:"size:255;"`
+ AppName string `validate:"required,min=1,max=120" gorm:"size:120;"`
+ BaseUrl string `validate:"required,min=1,max=120" gorm:"size:120;"`
12
13
- Project string `validate:"required,min=1,max=512" gorm:"size:512;"`
- ProjectDocumentation string `validate:"required,min=1,max=512" gorm:"size:512;"`
- ProjectDownload string `validate:"required,min=1,max=512" gorm:"size:512;"`
- ProjectExampleVideo string `validate:"required,min=1,max=512" gorm:"size:512;"`
+ ProjectExampleVideo string `validate:"required,min=1,max=512" gorm:"size:512;"`
JwtSecretKey string `validate:"required,min=8,max=512" gorm:"size:512;"`
JwtUploadSecretKey string `validate:"required,min=8,max=512" gorm:"size:512;"`
views/index.html
@@ -14,10 +14,10 @@ <h1>{{.AppName}}</h1>
<a target="_blank" href="{{.ExampleVideo}}">Example Video Player</a>
</li>
<li>
- <a target="_blank" href="{{.ProjectDocumentation}}">Api Documentation</a>
+ <a target="_blank" href="https://videocms-docs.vercel.app/">Api Documentation</a>
- <a target="_blank" href="{{.ProjectDownload}}">Docker Image / Download</a>
+ <a target="_blank" href="https://hub.docker.com/r/kirari04/videocms">Docker Image / Download</a>
<a target="_blank" href="examples/upload">Upload Example</a>
views/player.html
@@ -431,7 +431,7 @@
431
if (Webhooks == null) Webhooks = [];
432
const JWT = "{{.JWT}}";
433
const UUID = "{{.UUID}}";
434
- const PROJECTURL = "{{.PROJECTURL}}";
+
435
const TITLE = "{{.Title}}";
436
const StreamIsReady = ("{{.StreamIsReady}}" === "true");
437
const FOLDER = "{{.Folder}}";
0 commit comments