-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New image proxy implementation and image sanitisation code (#513)
* added new image proxy implementation. Image sanitisation is still WIP * changes to make auth work. refactoring to support rewrite rules better * disabled image proxy logger * fixed header name * extract type
- Loading branch information
Showing
40 changed files
with
567 additions
and
243 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import app from './app' | ||
import { logger } from './logger' | ||
|
||
process.on('unhandledRejection', (error: Error) => { | ||
logger.error('unhandledRejection', error) | ||
}) | ||
process.on('uncaughtException', (err: Error) => { | ||
logger.error('uncaughtException', err) | ||
}) | ||
|
||
const start = async () => { | ||
const [host = 'localhost', port = 8080] = [app.get('host'), app.get('port')] | ||
|
||
const server = await app | ||
.listen(port, host, () => { | ||
logger.info(`Application server listening on http://${host}:${port}`) | ||
}) | ||
.catch(err => { | ||
logger.error('Server startup error:', err) | ||
process.exit(1) | ||
}) | ||
|
||
server.on('error', err => { | ||
logger.error('Server error', err) | ||
}) | ||
server.on('close', () => { | ||
logger.error('Server closed') | ||
}) | ||
} | ||
|
||
start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.