Skip to content

Commit 185a7d6

Browse files
committed
update default port and finish setting up static endpoint fixes #15
1 parent 95ac7ad commit 185a7d6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func main() {
1818
var port int
1919
var logLevel int
2020

21-
pflag.IntVarP(&port, "port", "p", 8080, "port to run the server on")
21+
pflag.IntVarP(&port, "port", "p", 80, "port to run the server on")
2222
pflag.IntVarP(&logLevel, "log-level", "l", 2, "level of logging wanted. 1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=PANIC")
2323
pflag.Parse()
2424

web/src/app/app.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ export class AppComponent {
2323

2424
getBackground() {
2525
const url = this.data.getBackground();
26-
const background = "url(" + url + ")";
26+
const background = "url(" + this.data.url + ":" + this.data.port + url + ")";
2727
this.background = this.sanitizer.bypassSecurityTrustStyle(background);
2828
}
2929

3030
getStyles() {
3131
let url = this.data.getStylesheet();
32-
this.customStyle = this.sanitizer.bypassSecurityTrustResourceUrl(url);
32+
const style = this.data.url + ":" + this.data.port + url;
33+
this.customStyle = this.sanitizer.bypassSecurityTrustResourceUrl(style);
3334
}
3435

3536
stopStyleTimer() {

0 commit comments

Comments
 (0)