[www] - redirect.tsv (now uses remote config)

This commit is contained in:
Roman Timashev committed 2017-09-19 13:49:20 +03:00
1 parent 4d3fa1c064
commit 8e587b5781
2 files changed
-29

No files matched your search

-12
View File
@@ -23,18 +23,6 @@ export default Object.keys(privateData)
return config
}, config)
let redirectPath = path.join(__dirname, '../redirect.tsv')
export const redirectionTable = fs.readFileSync(redirectPath, 'utf-8')
.split('\n')
.map(row => row.split(/\s+/))
.map(row => {
let [from, to] = row
return {
'url': from,
'redirect': to
}
})
export const name = 'Hudozka'
export const host = 'art.shlisselburg.org'
export const protocol = 'https://'