Skip to content

Commit

Permalink
Merge pull request #6 from linkwarden/main
Browse files Browse the repository at this point in the history
Fork Sync: Update from parent repository
  • Loading branch information
Eisaichen authored Nov 5, 2024
2 parents 23bc45a + dbd096a commit 325ee84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
NEXTAUTH_SECRET=very_sensitive_secret
NEXTAUTH_URL=http://localhost:3000/api/v1/auth
NEXTAUTH_SECRET=

# Manual installation database settings
DATABASE_URL=postgresql://user:password@localhost:5432/linkwarden
# Example: DATABASE_URL=postgresql://user:password@localhost:5432/linkwarden
DATABASE_URL=

# Docker installation database settings
POSTGRES_PASSWORD=super_secret_password
POSTGRES_PASSWORD=

# Additional Optional Settings
PAGINATION_TAKE_COUNT=
Expand Down Expand Up @@ -33,6 +34,7 @@ SCREENSHOT_MAX_BUFFER=
READABILITY_MAX_BUFFER=
PREVIEW_MAX_BUFFER=
IMPORT_LIMIT=
PLAYWRIGHT_LAUNCH_OPTIONS_EXECUTABLE_PATH=

# AWS S3 Settings
SPACES_KEY=
Expand Down
3 changes: 3 additions & 0 deletions lib/api/archiveHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
password: process.env.PROXY_PASSWORD,
};
}
if (process.env.PLAYWRIGHT_LAUNCH_OPTIONS_EXECUTABLE_PATH) {
browserOptions.executablePath = process.env.PLAYWRIGHT_LAUNCH_OPTIONS_EXECUTABLE_PATH;
}

const browser = await chromium.launch(browserOptions);
const context = await browser.newContext({
Expand Down

0 comments on commit 325ee84

Please sign in to comment.