Revert "prevent slashtags from accessing disk"
This reverts commit 3c6c2a72b2
.
This commit is contained in:
parent
bbedec853f
commit
391773be5e
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd /var/app/staging
|
||||||
|
sudo -u webapp npm install @synonymdev/slashtags-sdk@1.0.0-alpha.36
|
||||||
|
sudo -u webapp npm install @synonymdev/slashtags-auth@1.0.0-alpha.5
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd /var/app/staging
|
||||||
|
sudo -u webapp npm install @synonymdev/slashtags-sdk@1.0.0-alpha.36
|
||||||
|
sudo -u webapp npm install @synonymdev/slashtags-auth@1.0.0-alpha.5
|
|
@ -1,7 +1,6 @@
|
||||||
import models from '../models'
|
import models from '../models'
|
||||||
import SDK, { SlashURL } from '@synonymdev/slashtags-sdk'
|
import SDK, { SlashURL } from '@synonymdev/slashtags-sdk'
|
||||||
import { Server } from '@synonymdev/slashtags-auth'
|
import { Server } from '@synonymdev/slashtags-auth'
|
||||||
import RAM from 'random-access-memory'
|
|
||||||
|
|
||||||
const HOUR = 1000 * 60 * 60
|
const HOUR = 1000 * 60 * 60
|
||||||
|
|
||||||
|
@ -20,10 +19,7 @@ async function createProfile (slashtag) {
|
||||||
|
|
||||||
const slashtags = global.slashtags || (() => {
|
const slashtags = global.slashtags || (() => {
|
||||||
console.log('initing slashtags')
|
console.log('initing slashtags')
|
||||||
const sdk = new SDK({
|
const sdk = new SDK({ primaryKey: process.env.SLASHTAGS_SECRET ? Buffer.from(process.env.SLASHTAGS_SECRET, 'hex') : undefined })
|
||||||
primaryKey: process.env.SLASHTAGS_SECRET ? Buffer.from(process.env.SLASHTAGS_SECRET, 'hex') : undefined,
|
|
||||||
storage: new RAM()
|
|
||||||
})
|
|
||||||
|
|
||||||
// Get the default slashtag
|
// Get the default slashtag
|
||||||
const slashtag = sdk.slashtag()
|
const slashtag = sdk.slashtag()
|
||||||
|
|
Loading…
Reference in New Issue