generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from config.json to config.yaml to be consistent with the rest…
… of DDEV config files
- Loading branch information
Showing
5 changed files
with
64 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
nodejs_version: "18" | ||
hooks: | ||
post-start: | ||
- exec: perl -pi -e "s/(https?:\/\/).*\d{4}/\1$DDEV_PROJECT.$DDEV_TLD:8529/g" ./spidergram.config.json | ||
- exec: perl -pi -e "s/(url: https?:\/\/).*\d{4}/\1$DDEV_PROJECT.$DDEV_TLD:8529/g" ./spidergram.config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
# The included Docker Compose file spins up a no-authentication instance | ||
# of ArangoDB — it's simple to use for local crawling, but it's a good | ||
# idea to set up a "real" server, even if it's running locally, once | ||
# you're done kicking the tires. | ||
arango: | ||
databaseName: db | ||
url: http://spidergram.ddev.site:8529 | ||
auth: | ||
username: root | ||
password: db | ||
|
||
# These options control the behavior of the Spider when it's actually | ||
# crawling pages and searching them for new links. In a simple config | ||
# file, you can change settings. In a .js or .ts configuration script, | ||
# you can pass in custom URL filtering and response handling functions | ||
# for more control. | ||
spider: | ||
# These options control the behavior of the Spider when it's actually | ||
# crawling pages and searching them for new links. In a simple config | ||
# file, you can change settings. In a .js or .ts configuration script, | ||
# you can pass in custom URL filtering and response handling functions | ||
# for more control. | ||
downloadMimeTypes: | ||
- application/pdf | ||
userAgent: MyCustomSpider | ||
# Links will be labeled with these categories based on | ||
# the section of the page they're found in. Each key is | ||
# a region name, and each value is a CSS selector defining | ||
# the region. By default, the 'regions' property is empty | ||
# and saved links are unlabeled. | ||
urlOptions: | ||
regions: | ||
- header | ||
- footer | ||
- body | ||
|
||
# Spidergram uses a global URL normalizer to ensure that the same | ||
# rules are applied consistently and pages aren't re-visited needlessly. | ||
# The default URL normalizer is configurable, but a custom function can be | ||
# passed in instead of this settings object when using a .js or .ts | ||
# configuration script. | ||
urlNormalizer: | ||
# forceProtocol: "https:" | ||
# forceLowercase: "host" | ||
# discardSubdomain: "ww*" | ||
# discardAnchor: true | ||
# discardAuth: true | ||
# discardIndex: "**/{index,default}.{htm,html,aspx,php}" | ||
# discardSearch: "!{page,p}" | ||
# sortSearchParams: true | ||
discardTrailingSlash: true # false by default |