Commit df82274c authored by JustinW's avatar JustinW
Browse files

Added env variables for buckets, changed default tt port to 3301 to match that...

Added env variables for buckets, changed default tt port to 3301 to match that container, switched to 1.5gb ram for tt
parent 578469d5
......@@ -16,7 +16,7 @@ Enable the TEST key in development mode only. The examples below are signed usi
#### Quota Server
Tarantool database should be available on port 3401 of your local host.
Tarantool database should be available on port 3301 of your local host.
> tarantool ./app.lua
......
......@@ -11,7 +11,7 @@ const config = {
port: process.env.STEEMIT_UPLOAD_HTTP_PORT || 3234,
tarantool: {
host: process.env.STEEMIT_TARANTOOL_HOST || 'localhost',
port: process.env.STEEMIT_TARANTOOL_PORT || 3401,
port: process.env.STEEMIT_TARANTOOL_PORT || 3301,
username: process.env.STEEMIT_TARANTOOL_USERNAME || 'guest',
password: process.env.STEEMIT_TARANTOOL_PASSWORD || '',
},
......@@ -20,9 +20,9 @@ const config = {
minRep: parseFloat(process.env.STEEMIT_UPLOAD_MIN_REP || 10),
},
uploadBucket: 'steemit-imageproxy-upload',
webBucket: 'steemit-imageproxy-web',
thumbnailBucket: 'steemit-imageproxy-thumbnail',
uploadBucket: process.env.STEEMIT_IMAGEPROXY_BUCKET_UPLOAD || 'steemit-dev-imageproxy-upload',
webBucket: process.env.STEEMIT_IMAGEPROXY_BUCKET_WEB || 'steemit-dev-imageproxy-web',
thumbnailBucket: process.env.STEEMIT_IMAGEPROXY_BUCKET_THUMBNAIL || 'steemit-dev-imageproxy-thumbnail',
}
if(process.env['STEEMIT_IMAGEPROXY_AWS_KEY_ID']) {
......@@ -40,4 +40,4 @@ if(config.testKey) {
console.log('WARNING test key provided, do not use in production.');
}
export default config
\ No newline at end of file
export default config
......@@ -3,7 +3,7 @@ require 'quota'
box.cfg {
log_level = 5,
listen = '0.0.0.0:3301',
slab_alloc_arena = 8.0,
slab_alloc_arena = 1.5,
wal_dir = "/var/lib/tarantool",
snap_dir = "/var/lib/tarantool",
vinyl_dir = "/var/lib/tarantool"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment