Remove config key that is no longer used

This commit is contained in:
Calvin Montgomery 2017-09-27 21:50:51 -07:00
parent c4ad9099c2
commit 014f3f008e
3 changed files with 1 additions and 4 deletions

View file

@ -48,7 +48,6 @@ http:
# one port must be specified as default for the purposes of generating # one port must be specified as default for the purposes of generating
# links with the appropriate port # links with the appropriate port
default-port: 8080 default-port: 8080
domain: 'http://localhost'
# Specifies the root domain for cookies. If you have multiple domains # Specifies the root domain for cookies. If you have multiple domains
# e.g. a.example.com and b.example.com, the root domain is example.com # e.g. a.example.com and b.example.com, the root domain is example.com
root-domain: 'localhost' root-domain: 'localhost'

View file

@ -2,7 +2,7 @@
"author": "Calvin Montgomery", "author": "Calvin Montgomery",
"name": "CyTube", "name": "CyTube",
"description": "Online media synchronizer and chat", "description": "Online media synchronizer and chat",
"version": "3.50.0", "version": "3.50.1",
"repository": { "repository": {
"url": "http://github.com/calzoneman/sync" "url": "http://github.com/calzoneman/sync"
}, },

View file

@ -32,7 +32,6 @@ var defaults = {
} }
], ],
http: { http: {
domain: "http://localhost",
"default-port": 8080, "default-port": 8080,
"root-domain": "localhost", "root-domain": "localhost",
"alt-domains": ["127.0.0.1"], "alt-domains": ["127.0.0.1"],
@ -263,7 +262,6 @@ function preprocessConfig(cfg) {
} }
// Strip trailing slashes from domains // Strip trailing slashes from domains
cfg.http.domain = cfg.http.domain.replace(/\/*$/, "");
cfg.https.domain = cfg.https.domain.replace(/\/*$/, ""); cfg.https.domain = cfg.https.domain.replace(/\/*$/, "");
// Socket.IO URLs // Socket.IO URLs