Comparing version 1.0.5 to 1.0.6-a
@@ -32,3 +32,3 @@ /** | ||
console.log(`\nTo complete the install, run the following commands (Ubuntu Linux):`); | ||
console.log(`\nTo complete the install, customize ${niceConfig}, and integrate the daemon into your system. Here's one way, that works on Ubuntu Linux:`); | ||
console.log(`\tsudo useradd dcp-rds -d "${storage}" --system`); | ||
@@ -41,4 +41,3 @@ console.log(`\tsudo mkdir "${storage}"`); | ||
console.log('\tsudo systemctl daemon-reload'); | ||
console.log('\ttty >/dev/null || sudo systemctl restart dcp-rds'); | ||
console.log(`\ttty >/dev/null && sudo ${process.env.VISUAL || process.env.EDITOR || 'vi'} ${niceConfig} && sudo systemctl restart dcp-rds`); | ||
console.log('\tsudo systemctl restart dcp-rds'); | ||
console.log(''); |
{ | ||
"name": "dcp-rds", | ||
"version": "1.0.5", | ||
"version": "1.0.6-a", | ||
"description": "DCP Remote Data Service reference implementation", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -8,3 +8,4 @@ # DCP Remote Data Service | ||
:----------- |:------------------- |:--------------------------------------------- | ||
| Oct 8 2021 | Wes Garland | Initial Release | ||
| Oct 8 2021 | Wes Garland | 1.0.3, Initial Release | ||
| Jan 8 2022 | Wes Garland | 1.0.6, Documentation changes | ||
@@ -147,26 +148,17 @@ ## Legal (MIT License) | ||
### Common | ||
#### Installation - Standalone Package | ||
```bash | ||
PREFIX="/var/dcp-rds" | ||
``` | ||
#### Package install | ||
```bash | ||
sudo useradd -d "${PREFIX}" -M -s /bin/false dcp-rds | ||
sudo mkdir -p "${PREFIX}" | ||
sudo chown dcp-rds:dcp-rds "${PREFIX}" | ||
sudo npm i dcp-rds --global --prefix="${PREFIX}" | ||
``` | ||
#### Systemctl Integration | ||
```bash | ||
sed -e "s;/var/dcp-rds/;${PREFIX}/;" \ | ||
< "${PREFIX}/systemctl/dcp-rds.service" \ | ||
| sudo sh -c 'cat > /etc/systemd/system/dcp-rds.service' | ||
sudo systemctl daemon-reload | ||
sudo systemctl restart dcp-rds | ||
``` | ||
Once the package has been installed, you will need it to integrate it with whatever security scheme, process monitor and web servers you are running locally. | ||
The script will display one way of doing this with Ubuntu Linux when it finishes running. | ||
#### nginx Integration | ||
##### systemctl Integration | ||
A sample systemctl configuration is stored in ${PREFIX}/systemctl | ||
##### nginx Integration | ||
Here is one way to integrate with nginx: | ||
``` | ||
@@ -188,8 +180,4 @@ location /dcp-rds/methods { | ||
#### Apache Integration | ||
You'll need to set up a reverse proxy. | ||
- now edit apache confs | ||
- copy systemctl stuff | ||
- systemctl daemon-reload | ||
- systemctl start whatever this thing is call | ||
## Appendix A - Manifest | ||
@@ -196,0 +184,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
6
49416
447
1
261