From 5d65d89e01105bc1b37995175cd9336ea2c737e0 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Fri, 28 Jun 2019 17:01:41 +0200 Subject: [feat] add vendorize script to generate config --- pkg/config/config.go | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'pkg/config/config.go') diff --git a/pkg/config/config.go b/pkg/config/config.go index fed3cc9..29f724a 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,16 +1,34 @@ +/* + DO NOT EDIT -------------------------------------------------- + + This file has been automatically generated by `go generate`. + Any changes will be overriden. + + DO NOT EDIT -------------------------------------------------- +*/ + package config +/* All these constants are defined in the vendor.conf file +*/ const ( + Provider = "riseup.net" ApplicationName = "RiseupVPN" BinaryName = "riseup-vpn" - Provider = "riseup.net" - DonateURL = "https://riseup.net/vpn/donate" - HelpURL = "https://riseup.net/vpn/support" + DonateURL = "https://riseup.net/donate" + HelpURL = "https://riseup.net/support" TosURL = "https://riseup.net/tos" APIURL = "https://api.black.riseup.net/" GeolocationAPI = "https://api.black.riseup.net:9001/json" ) +/* + +CaCert : a string containing a representation of the provider CA, used to + sign the webapp and openvpn certificates. should be placed in + config/[provider]/ca.crt + +*/ var CaCert = []byte(`-----BEGIN CERTIFICATE----- MIIFjTCCA3WgAwIBAgIBATANBgkqhkiG9w0BAQ0FADBZMRgwFgYDVQQKDA9SaXNl dXAgTmV0d29ya3MxGzAZBgNVBAsMEmh0dHBzOi8vcmlzZXVwLm5ldDEgMB4GA1UE -- cgit v1.2.3