pull/76/head
Chocobozzz 2017-07-12 14:58:34 +02:00
parent d38309c345
commit 0b7db72af3
4 changed files with 2 additions and 7 deletions

View File

@ -6,7 +6,6 @@ import * as Promise from 'bluebird'
import { database as db } from '../initializers/database' import { database as db } from '../initializers/database'
import { import {
CONFIG, CONFIG,
REMOTE_SCHEME,
STATIC_PATHS, STATIC_PATHS,
STATIC_MAX_AGE, STATIC_MAX_AGE,
OPENGRAPH_COMMENT OPENGRAPH_COMMENT

View File

@ -37,7 +37,6 @@ staticRouter.use(
) )
// Video previews path for express // Video previews path for express
const previewsPhysicalPath = CONFIG.STORAGE.PREVIEWS_DIR
staticRouter.use( staticRouter.use(
STATIC_PATHS.PREVIEWS + ':uuid.jpg', STATIC_PATHS.PREVIEWS + ':uuid.jpg',
getPreview getPreview

View File

@ -1,12 +1,10 @@
import { join } from 'path'
import * as config from 'config'
import * as passwordGenerator from 'password-generator' import * as passwordGenerator from 'password-generator'
import * as Promise from 'bluebird' import * as Promise from 'bluebird'
import { database as db } from './database' import { database as db } from './database'
import { USER_ROLES, CONFIG, LAST_MIGRATION_VERSION, CACHE } from './constants' import { USER_ROLES, CONFIG, LAST_MIGRATION_VERSION, CACHE } from './constants'
import { clientsExist, usersExist } from './checker' import { clientsExist, usersExist } from './checker'
import { logger, createCertsIfNotExist, root, mkdirpPromise, rimrafPromise } from '../helpers' import { logger, createCertsIfNotExist, mkdirpPromise, rimrafPromise } from '../helpers'
function installApplication () { function installApplication () {
return db.sequelize.sync() return db.sequelize.sync()

View File

@ -1,11 +1,10 @@
import * as request from 'request'
import * as asyncLRU from 'async-lru' import * as asyncLRU from 'async-lru'
import { join } from 'path' import { join } from 'path'
import { createWriteStream } from 'fs' import { createWriteStream } from 'fs'
import * as Promise from 'bluebird' import * as Promise from 'bluebird'
import { database as db, CONFIG, CACHE } from '../../initializers' import { database as db, CONFIG, CACHE } from '../../initializers'
import { logger, writeFilePromise, unlinkPromise } from '../../helpers' import { logger, unlinkPromise } from '../../helpers'
import { VideoInstance } from '../../models' import { VideoInstance } from '../../models'
import { fetchRemotePreview } from '../../lib' import { fetchRemotePreview } from '../../lib'