remoton

Check-in [29c661180f]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:remoton-server add enviroment var REMOTON_SERVER_AUTH_TOKEN
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:29c661180f7063d9d8408ca3f903f91607a354313ed06877bb7f929aaefb1d28
User & Date: bit4bit@riseup.net 2017-06-14 02:40:45
Context
2017-06-14
02:52
fix slice outbounds check-in: 9dcbf9d981 user: bit4bit@riseup.net tags: master, trunk
02:40
remoton-server add enviroment var REMOTON_SERVER_AUTH_TOKEN check-in: 29c661180f user: bit4bit@riseup.net tags: master, trunk
2017-06-12
05:44
vendor ignore check-in: a6a887be4d user: bit4bit@riseup.net tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to cmd/remoton-server/main.go.

33
34
35
36
37
38
39




40
41
42
43
44
45
46
		flag, err := os.Create(*profile)
		if err != nil {
			log.Fatal(err)
		}
		pprof.StartCPUProfile(flag)
		defer pprof.StopCPUProfile()
	}





	if *authTokenFlag == "" {
		*authTokenFlag = "public"
		log.Println("Using default Token", *authTokenFlag)
	}

	if *certFile == "" || *keyFile == "" {







>
>
>
>







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
		flag, err := os.Create(*profile)
		if err != nil {
			log.Fatal(err)
		}
		pprof.StartCPUProfile(flag)
		defer pprof.StopCPUProfile()
	}

	if os.Getenv("REMOTON_SERVER_AUTH_TOKEN") != "" {
		*authTokenFlag = os.Getenv("REMOTON_SERVER_AUTH_TOKEN")
	}

	if *authTokenFlag == "" {
		*authTokenFlag = "public"
		log.Println("Using default Token", *authTokenFlag)
	}

	if *certFile == "" || *keyFile == "" {