https://github.com/52north/ckan-proxy
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.8%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: 52North
- License: other
- Language: JavaScript
- Default Branch: master
- Size: 82 KB
Statistics
- Stars: 5
- Watchers: 11
- Forks: 1
- Open Issues: 4
- Releases: 0
Metadata Files
README.md
CKAN CORS Proxy
Installation
sh
npm install -g '52North/ckan-proxy'
ckan-proxy uses bunyan as the logging component. The JSON output of bunyan can be best viewed using the bunyan CLI tool:
sh
npm install -g bunyan
systemd
Add a node user:
sh
useradd -rUmd /var/lib/node -s /bin/bash node
Create a unit file: ```sh cat > /etc/systemd/system/ckan-proxy.service <<EOF [Unit] Description=CKAN Proxy Server After=network.target Requires=network.target
[Service] ExecStart=/usr/bin/ckan-proxy /etc/ckan-proxy.json User=node Group=node Restart=always
[Install] WantedBy=multi-user.target EOF ```
Create a minimal configuration in /etc/ckan-proxy.json:
sh
echo '{}' > /etc/ckan-proxy.json
Start and enable the ckan-proxy service:
sh
systemctl daemon-reload
systemctl enable ckan-proxy.service
systemctl start ckan-proxy.service
To view the log files (requires bunyan):
sh
journalctl -f -u ckan-proxy.service -o cat | bunyan
Configuration
Call ckan-proxy with the path to a JSON configuration file as the first argument. E.g. ckan-proxy /etc/ckan-proxy.json.
Default Configuration Options
json
{
"logging": {
"level": "info"
},
"proxy": {
"port": 9090,
"cors": {
"allowedHeaders": [
"accept",
"accept-charset",
"accept-encoding",
"accept-language",
"authorization",
"content-length",
"content-type",
"host",
"origin",
"proxy-connection",
"referer",
"user-agent",
"x-requested-with"
],
"allowedMethods": [
"HEAD",
"POST",
"GET",
"PUT",
"PATCH",
"DELETE"
]
}
},
"whitelist": {
"ckan": {
"enabled": false,
"url": "http://demo.ckan.org",
"updateInterval": 0,
"rowsPerRequest": 500
},
"domains": []
}
}
Logging
You can use bunyan configuration options in the settings:
json
{
"logging": {
"level": "info",
"path": "/var/log/ckan-proxy.log",
}
}
Be aware that this module uses the cluster module and rolling file streams are not compatible.
Owner
- Name: 52°North Spatial Information Research GmbH
- Login: 52North
- Kind: organization
- Email: info@52north.org
- Location: Münster
- Website: https://52north.org/
- Twitter: fivetwon
- Repositories: 261
- Profile: https://github.com/52North
Advancing spatial information infrastructures to foster open science
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 8
- Average time to close issues: N/A
- Average time to close pull requests: 4 months
- Total issue authors: 0
- Total pull request authors: 3
- Average comments per issue: 0
- Average comments per pull request: 0.25
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 6
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- dependabot-preview[bot] (6)
- autermann (1)
- PasunuriSrinidhi (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- bluebird ^2.9.25
- bunyan ^1.3.5
- extend ^2.0.1
- request-promise ^0.4.2