Skip to content

Commit

Permalink
fix service file
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Sep 22, 2023
1 parent acd5c20 commit ec422b0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions services/pds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit ec422b0

Please sign in to comment.