Skip to content

Commit 19b976b

Browse files
committed
dashboard/app: support for running locally
DO NOT COMMIT
1 parent 8500a9f commit 19b976b

File tree

2 files changed

+55
-5
lines changed

2 files changed

+55
-5
lines changed

dashboard/app/app.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ inbound_services:
1515

1616
handlers:
1717
- url: /favicon.ico
18-
static_files: dashboard/app/static/favicon.ico
19-
upload: dashboard/app/static/favicon.ico
18+
static_files: static/favicon.ico
19+
upload: static/favicon.ico
2020
secure: always
2121
- url: /robots.txt
22-
static_files: dashboard/app/static/robots.txt
23-
upload: dashboard/app/static/robots.txt
22+
static_files: static/robots.txt
23+
upload: static/robots.txt
2424
secure: always
2525
- url: /static
26-
static_dir: dashboard/app/static
26+
static_dir: static
2727
secure: always
2828
- url: /(admin|cron/.*)
2929
script: auto

dashboard/app/local_config.go

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package main
2+
3+
func init() {
4+
checkConfig(localConfig)
5+
mainConfig = localConfig
6+
}
7+
8+
var localConfig = &GlobalConfig{
9+
AccessLevel: AccessPublic,
10+
Clients: map[string]string{
11+
"global-local": "Uvx0zUMD4QreHaASliwXVBaGlOnlcZlR",
12+
},
13+
ContactEmail: "dvyukov@google.com",
14+
DefaultNamespace: "upstream",
15+
Namespaces: map[string]*Config{
16+
"upstream": {
17+
AccessLevel: AccessPublic,
18+
DisplayTitle: "Linux",
19+
SimilarityDomain: "Linux",
20+
Key: "Uvx0zUMD4QreHaASliwXVBaGlOnlcZlR",
21+
Clients: map[string]string{
22+
"upstream-client": "Uvx0zUMD4QreHaASliwXVBaGlOnlcZlR",
23+
},
24+
Repos: []KernelRepo{
25+
{
26+
URL: "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",
27+
Branch: "master",
28+
Alias: "upstream",
29+
ReportingPriority: 9,
30+
},
31+
},
32+
MailWithoutReport: true,
33+
WaitForRepro: 0,
34+
Managers: map[string]ConfigManager{
35+
},
36+
Reporting: []Reporting{
37+
{
38+
AccessLevel: AccessPublic,
39+
Name: "upstream",
40+
DisplayTitle: "upstream",
41+
DailyLimit: 10,
42+
Config: &EmailConfig{
43+
Email: "dvyukov@google.com",
44+
SubjectPrefix: "[local syzbot]",
45+
},
46+
},
47+
},
48+
},
49+
},
50+
}

0 commit comments

Comments
 (0)