Changeset 142 in code for trunk/config/config.go
- Timestamp:
- Aug 26, 2023, 11:57:19 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/config/config.go
r140 r142 20 20 21 21 func init() { 22 default_listen_addr := os.Getenv(" MORTY_ADDRESS")22 default_listen_addr := os.Getenv("YUKARI_ADDRESS") 23 23 if default_listen_addr == "" { 24 24 default_listen_addr = "127.0.0.1:3000" 25 25 } 26 default_url_parameter := os.Getenv(" MORTY_URL_PARAM")26 default_url_parameter := os.Getenv("YUKARI_URL_PARAM") 27 27 if default_url_parameter == "" { 28 default_url_parameter = " mortyurl"28 default_url_parameter = "yukariurl" 29 29 } 30 default_hash_parameter := os.Getenv(" MORTY_HASH_PARAM")30 default_hash_parameter := os.Getenv("YUKARI_HASH_PARAM") 31 31 if default_hash_parameter == "" { 32 default_hash_parameter = " mortyhash"32 default_hash_parameter = "yukarihash" 33 33 } 34 default_key := os.Getenv(" MORTY_KEY")34 default_key := os.Getenv("YUKARI_KEY") 35 35 DefaultConfig = &Config{ 36 36 Debug: os.Getenv("DEBUG") != "false",
Note:
See TracChangeset
for help on using the changeset viewer.