From ec422b0dd002472d8cf8155f66f6b84b131687ed Mon Sep 17 00:00:00 2001 From: dholms Date: Thu, 21 Sep 2023 21:04:39 -0500 Subject: [PATCH] fix service file --- services/pds/index.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/services/pds/index.js b/services/pds/index.js index 5c4d8e924a7..b65505152fb 100644 --- a/services/pds/index.js +++ b/services/pds/index.js @@ -15,14 +15,12 @@ const path = require('path') const { KmsKeypair, S3BlobStore, - CloudfrontInvalidator, } = require('@atproto/aws') const { Database, ServerConfig, PDS, ViewMaintainer, - makeAlgos, PeriodicModerationActionReversal, } = require('@atproto/pds') const { Secp256k1Keypair } = require('@atproto/crypto') @@ -68,19 +66,12 @@ const main = async () => { password: env.smtpPassword, }), }) - const cfInvalidator = new CloudfrontInvalidator({ - distributionId: env.cfDistributionId, - pathPrefix: cfg.imgUriEndpoint && new URL(cfg.imgUriEndpoint).pathname, - }) - const algos = env.feedPublisherDid ? makeAlgos(env.feedPublisherDid) : {} const pds = PDS.create({ db, blobstore: s3Blobstore, repoSigningKey, plcRotationKey, config: cfg, - imgInvalidator: cfInvalidator, - algos, }) const viewMaintainer = new ViewMaintainer(migrateDb) const viewMaintainerRunning = viewMaintainer.run() @@ -151,8 +142,6 @@ const getEnv = () => ({ smtpUsername: process.env.SMTP_USERNAME, smtpPassword: process.env.SMTP_PASSWORD, s3Bucket: process.env.S3_BUCKET_NAME, - cfDistributionId: process.env.CF_DISTRIBUTION_ID, - feedPublisherDid: process.env.FEED_PUBLISHER_DID, }) const maintainXrpcResource = (span, req) => {