Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPII-2971: Install on demand #174

Open
wants to merge 179 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
66d4d5b
GPII-2338: Added Windows service to windows repo
stegru Aug 30, 2017
c017136
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Sep 8, 2017
0920bca
GPII-2338: Using pkg to create an executable for the service.
stegru Sep 11, 2017
7c852c3
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Sep 22, 2017
96143d6
GPII-2338: Updated documentation.
stegru Sep 22, 2017
227d872
GPII-2338: Invoking os_service.run early
stegru Sep 22, 2017
ad4aa20
GPII-2338: Stopping processes when service stops
stegru Sep 26, 2017
192b3f9
GPII-2338: Improved child process handling
stegru Oct 2, 2017
796a901
GPII-2338: Improved stdout/err logging
stegru Oct 3, 2017
d24d265
GPII-2338: Added loglevel argument
stegru Oct 3, 2017
ff4b578
GPII-2338: Start gpii if already logged on.
stegru Oct 3, 2017
067e4a2
GPII-2338: Closed process handle when process ends.
stegru Oct 3, 2017
ebd4d71
GPII-2338: Made process running detection more robust.
stegru Oct 3, 2017
e8d00e9
GPII-2338: Removed test that fails with Administrator.
stegru Oct 3, 2017
7b91a32
GPII-2338: Removed (another) test that fails with Administrator.
stegru Oct 3, 2017
806a052
GPII-2338: Rename "gpii-process.js" to "processHandleing.js"
stegru Oct 3, 2017
76d83c8
GPII-2338: Test was printing the wrong thing.
stegru Oct 3, 2017
7064428
GPII-2338: Removed unused things from package.json
stegru Oct 4, 2017
62c0508
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Oct 4, 2017
43dd0d5
GPII-2338: Made the build work from gpii-app.
stegru Oct 18, 2017
31c0ad8
GPII-2338: Made it work when installed
stegru Oct 18, 2017
32f092b
GPII-2338: Updated documentation.
stegru Oct 20, 2017
38aef9a
GPII-2338: Polished documentation.
stegru Oct 20, 2017
3bb08fc
GPII-2338: Changed language for config
stegru Oct 20, 2017
e479b8e
GPII-2338: Moved service directory higher
stegru Oct 20, 2017
e961d6d
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Oct 20, 2017
4a20b0e
Merge branch 'GPII-2338' of github.com:stegru/windows into GPII-2338
stegru Oct 20, 2017
0e2c6f5
GPII-2338: Fixed incorrect service build
stegru Oct 20, 2017
7f0bd97
GPII-2338: Fixed incorrect service build (2)
stegru Oct 20, 2017
0209128
GPII-2338: Increased timeout in test when waiting for process to rest…
stegru Oct 22, 2017
e4a90b2
GPII-2338: Run service tests in another process.
stegru Oct 24, 2017
a5f5ef6
GPII-2338: Fixed incorrect null check.
stegru Oct 26, 2017
3f64240
GPII-2338: Added proximity listener to process list.
stegru Nov 20, 2017
612f7b3
Merge branch 'GPII-2294' into GPII-2338
stegru Jan 18, 2018
2320161
GPII-2338: Updated reference to universal
stegru Jan 18, 2018
0314fb6
Merge branch 'GPII-2294' into GPII-2338
stegru Jan 18, 2018
ccd4d8b
GPII-2338: Set environment variables for child processes via config.
stegru Jan 19, 2018
2222e11
GPII-2338: Made the pipe asynchronous, and prevented standard streams…
stegru Feb 2, 2018
58ef6f7
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Feb 2, 2018
0fd0bf6
GPII-2338: Small tidy-ups
stegru Feb 2, 2018
caa3694
GPII-2399: Using plain named pipes for the IPC.
stegru Feb 9, 2018
6e87c98
GPII-2399: Fixed test.
stegru Feb 9, 2018
8a461b1
GPII-2338: Service+GPII communication working.
stegru Feb 12, 2018
d638515
GPII-2338: Added null reference check.
stegru Feb 13, 2018
ab512f6
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Mar 28, 2018
865c582
GPII-2338: Fixed universal reference
stegru Apr 2, 2018
6e0f1e1
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Apr 30, 2018
309064c
GPII-2338: Improved service connectivity.
stegru Apr 30, 2018
a3c59a3
GPII-2338: Implemented service:gpii messaging.
stegru May 1, 2018
57fc7cd
GPII-2338: IPC messaging is optional.
stegru May 1, 2018
03426b1
GPII-2971: The beginning of IoD.
stegru May 2, 2018
136df3e
GPII-2971: Moved installation routing into installer component.
stegru May 2, 2018
feee217
Merge remote-tracking branch 'upstream/master' into GPII-2971
stegru May 8, 2018
f7eebad
GPII-2972: Proper jsdoc.
stegru May 8, 2018
bf394ba
GPII-2338: Improvements to request sending
stegru May 9, 2018
631bc03
Merge branch 'GPII-2338' into GPII-2971
stegru May 9, 2018
772402f
GPII-2338: Improved execute action, added action tests
stegru May 10, 2018
d1e3ffc
GPII-2338: Fixed jsdoc
stegru May 10, 2018
166a666
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru May 10, 2018
8d126ca
GPII-2338: Added service to code coverage.
stegru May 10, 2018
478f768
Merge branch 'GPII-2338' into GPII-2971
stegru May 10, 2018
f23b2d7
GPII-2971: Invoking choco via the windows service.
stegru May 10, 2018
141de78
GPII-2971: Can install/uninstall packages at key-in/out (very hacky)
stegru May 11, 2018
f100f90
GPII-2338: Checked if connected to service before making a request to…
stegru May 16, 2018
4d2c77c
Merge branch 'GPII-2338' into GPII-2971
stegru May 16, 2018
22e67ae
Merge branch 'GPII-3066' into GPII-2971
stegru Jun 5, 2018
0dcbe26
GPII-2338: JSON5 config
stegru Jun 6, 2018
bd04a33
GPII-2338: json comments
stegru Jun 6, 2018
f6f352d
GPII-2338: Running service as admin, from npm
stegru Jun 6, 2018
4b5a57e
Merge branch 'GPII-2338' into GPII-2971
stegru Jun 7, 2018
edcbd25
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Jun 25, 2018
f0bed42
GPII-2338: Renamed service handler module
stegru Jun 25, 2018
91cb732
GPII-2338: JSDoc - typename casing
stegru Jun 26, 2018
7a88bad
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Jul 3, 2018
e948f6b
GPII-2338: Moved service build from Build.ps1 to NpmInstall.ps1
stegru Jul 3, 2018
6a8f74d
GPII-2338: Improved how the service started/stopped for development.
stegru Jul 4, 2018
318f1f2
GPII-2338: Improved the way in which service->gpii requests are handl…
stegru Jul 4, 2018
edeb17e
GPII-2338: Fixed broken code to match working comment.
stegru Jul 4, 2018
da0cd66
GPII-2338: Improved service control code comments.
stegru Jul 4, 2018
94f53f7
GPII-2338: Improved service control code comments.
stegru Jul 5, 2018
9688723
GPII-2338: Tweaked how service events are raised.
stegru Jul 6, 2018
502f3ac
GPII-2338: Fixed service build
stegru Jul 7, 2018
a75ca28
GPII-2338: Better naming for sending vs receiving requests
stegru Jul 7, 2018
4a6c053
GPII-2338: Added IPC documentation + code updates to match
stegru Jul 9, 2018
c4cdc61
GPII-2338: Clarifying comment
stegru Jul 9, 2018
e7f7a67
GPII-2338: Massaged the tests into passing.
stegru Jul 9, 2018
fd06991
GPII-2338: Stop the UNC path complaint with cmd.exe making the test f…
stegru Jul 9, 2018
bbb1f14
Merge branch 'GPII-2338' into GPII-2971
stegru Jul 10, 2018
4be8daf
Merge remote-tracking branch 'upstream/master' into GPII-2971
stegru Aug 20, 2018
2428027
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Aug 20, 2018
cec5584
GPII-2338: JSDoc linting fixes (only files introduced by this branch).
stegru Aug 20, 2018
7dc52ec
Merge branch 'GPII-2338' into GPII-2971
stegru Aug 20, 2018
042048b
GPII-2971: JSDoc linting fixes (only files introduced by this branch).
stegru Aug 20, 2018
b220cef
GPII-2338: Referencing latest universal.
stegru Aug 21, 2018
4f2f17e
Merge branch 'GPII-2338' into GPII-2971
stegru Aug 21, 2018
5d6ce68
GPII-2971: JSON5
stegru Aug 22, 2018
6ae48ac
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Sep 11, 2018
88be30d
Merge branch 'GPII-2338' into GPII-2971
stegru Sep 11, 2018
5be4d90
GPII-2971: Dummy test
stegru Sep 11, 2018
51c2d88
GPII-2971: Renamed IoD module name to gpii-iod
stegru Sep 11, 2018
f8530d6
GPII-2971: Language installer skeleton.
stegru Sep 13, 2018
1565f99
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Nov 9, 2018
877cac5
GPII-2338: Updated to ffi-napi
stegru Nov 14, 2018
4812856
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Jan 2, 2019
c2b9869
GPII-2338: Fixed code in document
stegru Jan 3, 2019
0fc54b7
GPII-2338: Include the config file as an asset, due to it being inval…
stegru Jan 8, 2019
0eefc12
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Jan 15, 2019
5cadacf
GPII-2338: GPII to Morphic rebranding.
stegru Jan 17, 2019
a978b3c
GPII-2338: Renamed service name to morphic-service
stegru Jan 17, 2019
90e9ee3
GPII-2338: Logging all stdout/stderr output.
stegru Jan 21, 2019
734fef8
GPII-2338: Service starts when installed.
stegru Jan 21, 2019
4b37e7b
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Jan 23, 2019
925dc1b
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Jan 30, 2019
11aba80
GPII-2338: Graceful shutdown of GPII.
stegru Jan 30, 2019
bc62331
GPII-2338: Fixed stop process test
stegru Jan 30, 2019
83bf4bd
GPII-2338: Improved service test coverage.
stegru Feb 5, 2019
b2117aa
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Feb 5, 2019
7825c92
GPII-2338: Removed lint problems.
stegru Feb 5, 2019
29c6329
GPII-2338: Removed jqunit - will be taken from the parent directory.
stegru Feb 7, 2019
029bcee
GPII-2338: Removed bluebird promises.
stegru Feb 8, 2019
0fc7db7
GPII-2338: Comments/whitespace fixes.
stegru Feb 8, 2019
069c782
GPII-2338: Renamed service directory to gpii-service
stegru Feb 14, 2019
7413756
GPII-2338: Increased timeout for crash detection.
stegru Feb 19, 2019
fff9074
GPII-2338: Updated build to use the gpii-service directory.
stegru Feb 22, 2019
2ed72bb
GPII-2338: Increased test timeouts.
stegru Feb 25, 2019
e8c25c9
GPII-2338: Changed config for gpii-app
stegru Feb 25, 2019
0ccb691
GPII-2338: Testing the service request handler functions.
stegru Feb 26, 2019
c4cd851
GPII-2338: Removed deprecated Buffer() call.
stegru Feb 27, 2019
917a899
GPII-2338: Moved service config to gpii-app.
stegru Feb 28, 2019
205ba83
GPII-2436: Reading secret file.
stegru Feb 28, 2019
e058276
Merge branch 'master' into GPII-2338
stegru Feb 28, 2019
ba8f025
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Mar 5, 2019
76da997
GPII-2338: Renamed service directory to gpii-service.
stegru Mar 6, 2019
989f992
GPII-3728: Getting client credentials from the service secret.
stegru Mar 6, 2019
ae79737
GPII-3725: Added sign request to service
stegru Mar 9, 2019
9d60ca5
GPII-3725: Auto key-in using windows login id
stegru Mar 9, 2019
36a64e1
GPII-3725: Lowered expectation.
stegru Mar 9, 2019
8072a80
GPII-2338: Stopped cmd.exe complaining about a UNC path
stegru Mar 10, 2019
b68a454
GPII-3725: Improved secrets loading.
stegru Mar 10, 2019
a65a108
GPII-3725: Re-loading config at the start of a test.
stegru Mar 10, 2019
72cf7b0
GPII-3725: Changed how gpii key is generated - using the static site …
stegru Mar 11, 2019
f632c1a
GPII-3725: Improved comments, removed name differing only by case.
stegru Mar 11, 2019
5a1da9d
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Mar 19, 2019
746344a
GPII-3728: Using the original client credentials source as a fallback
stegru Mar 20, 2019
2a32e54
GPII-3728: Waiting for the initial session ("no user") to start, befo…
stegru Mar 22, 2019
faf8bfb
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Mar 25, 2019
68d2118
GPII-2338: Made the client authentication more robust.
stegru Mar 27, 2019
8b55353
GPII-2338: Added --shutdown option, used by the installer to make GPI…
stegru Mar 28, 2019
27d5f9a
GPII-2338: Making the service always shutdown.
stegru Apr 12, 2019
2a445d6
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Jun 28, 2019
b02843b
GPII-4000: Blocking some local usernames from auto-login
stegru Jun 30, 2019
a5e61e9
GPII-3988: Added support for environmental logins in the user listeners.
stegru Jul 8, 2019
43eacdb
GPII-4000: Made the blocked username check case-insensitive
stegru Jul 8, 2019
4105e2d
GPII-2338: Only asserting process.exit once.
stegru Jul 10, 2019
8753bfc
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Aug 7, 2019
c54a861
Merge branch 'GPII-2338' into GPII-2971
stegru Aug 13, 2019
111b941
GPII-4099: Blocked user names configurable with wildcards
stegru Aug 31, 2019
c90a649
GPII-4099: Configurable user id source.
stegru Sep 3, 2019
daddcaf
GPII-4099: Fixed incorrect argument.
stegru Sep 4, 2019
66353d6
GPII-2971: IoD install/uninstall on key-in/out
stegru Sep 6, 2019
78a7b78
GPII-2971: Start/stop application
stegru Sep 11, 2019
e26b21a
GPII-2971: Serve & download package data + installer
stegru Nov 7, 2019
2310a8e
Merge remote-tracking branch 'upstream/master' into GPII-2338
stegru Nov 7, 2019
c9a74f2
GPII-2338: fixed universal reference
stegru Nov 7, 2019
e1104b5
GPII-2338: added os-service reference
stegru Nov 7, 2019
74a930b
GPII-2338: Moved os-service into the correct place (gpii-service module)
stegru Nov 7, 2019
61a73ea
GPII-2338: fixed require to use scoped package.
stegru Nov 7, 2019
c853fc1
Merge branch 'GPII-2338' into GPII-2971
stegru Nov 12, 2019
8c53e73
GPII-2971: Added support for windows installer (msi)
stegru Nov 13, 2019
9df231e
GPII-2971: Added appx iod support
stegru Nov 14, 2019
99b107c
GPII-2971: Option to start child process elevated
stegru Nov 15, 2019
4187626
GPII-2971: Supporting .exe installers
stegru Nov 15, 2019
ed0acd1
GPII-2971: Building the service in its own drive
stegru Nov 19, 2019
6b4b6e3
GPII-2971: Cause the language list to be updated after installation.
stegru Nov 19, 2019
022b068
GPII-2971: Installers now using the same command execution method
stegru Dec 28, 2019
e7bee71
GPII-2971: Improved command execution
stegru Dec 30, 2019
b430374
GPII-2971: Rename namespace gpii.iod.windows to gpii.windows.iod
stegru Jan 26, 2020
27b9ee3
GPII-2971: Detecting mounted drives for IoD
stegru Jan 27, 2020
7e92242
GPII-2971: Using exit codes for installer commands
stegru Jan 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"include": [
"index.js",
"gpii/node_modules/*/*.js",
"gpii/node_modules/*/src/*.js"
"gpii/node_modules/*/src/*.js",
"service/src/*.js"
],
"exclude": [
"!**/node_modules/"
Expand Down
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function (grunt) {
lintAll: {
sources: {
md: [ "./*.md","./gpii/*.md", "./settingsHelper/**/*.md"],
js: ["./gpii/**/*.js", "./tests/**/*.js", "./*.js"],
js: ["./gpii/**/*.js", "./tests/**/*.js", "./*.js", "./service/src/**/*.js", "./service/tests/**/*.js"],
json: ["./gpii/**/*.json", "./tests/**/*.json", "./settingsHelper/**/*.json", "./*.json"],
json5: ["./gpii/**/*.json5", "./tests/**/*.json5", "./*.json5"],
other: ["./.*"]
Expand Down
7 changes: 7 additions & 0 deletions gpii-service/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "eslint-config-fluid",
"env": {
"node": true,
"es6": true
}
}
170 changes: 170 additions & 0 deletions gpii-service/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# GPII Windows Service

A Windows Service that starts the GPII process (and listeners) when the user logs on, restarts it when it stops
unexpectedly, and provides the ability to run high-privileged tasks.

## Testing

The service can be ran as a normal process, without installing it.

Start the service via `npm start`, and the service will start GPII, and restart GPII if it dies.

`npm run service-dev` will start the service in development mode. That is, without it spawning GPII and allowing new
GPII instances to connect later without any authentication.

In both cases, the service will be started as a normal process but running as Administrator. This may only work in
vagrant boxes where UAC is at the minimal level, otherwise the commands will need to be invoked from an elevated command
prompt.

### From gpii-windows

`npm start` from gpii-windows ensures the service is running (in development mode) before starting gpii. GPII only
requires the service to be running if it applies solutions that depend on it.

### Running as a Windows Service

In order to use the service related functionality, such as starting GPII at the start of a Windows session, the gpii
service needs to be installed and ran as a Windows Service. These need to be started from an elevated command prompt.

Install the service: `npm run service-install`. To install the service using a config that does not start GPII, and
allows later instances to connect, run `npm run service-install-dev`

Start the service: `npm run service-start`

Stop the service: `npm run service-stop`

Uninstall the service: `npm run service-uninstall`

### Logging

When the service is being ran as a Windows service, don't expect a console window. The log will be found in
`%ProgramData%\GPII\gpii-service.log` (`C:\ProgramData\GPII\gpii-service.log`). The service doesn't put the log in the
same directory as GPII, because that's in the directory belonging to a user profile and the server doesn't run as a
normal user.

## Configuration

### [service.json5](config/service.json5)

Production config, used when being ran as `gpii-service.exe`. Starts `./gpii-app.exe` and accepts a connection from only
that child process.

### [service.dev.json5](config/service.dev.json5)

Default development configuration, used when running the service from the source directory. This doesn't start a child
gpii process, but allows any process to connect to the pipe using a known name.

### [service.dev.child.json5](config/service.dev.child.json5)

Starts GPII, via `node ../gpii.js` and accepts a connection only that child process.


To specify the config file, use the `--config` option when running or installing the service.

### Config options

```json5
{
"processes": {
/* A process block */
"gpii": { // key doesn't matter
/* The command to invoke. Can be undefined, to just open a pipe. */
"command": "gpii-app.exe", // Starts gpii

/* Provide a pipe to the process. */
"ipc": "gpii", // The value will be used to determine internally what the pipe does (nothing special at the moment)

/* Restart the process if it terminates. */
"autoRestart": true,
},

/* Opens a pipe (\\.\pipe\gpii-gpii), without any authentication. */
"gpii-dev": {
"ipc": "gpii",
"noAuth": true
},

/* More processes */
"rfid-listener": {
"command": "../listeners/GPII_RFIDListener.exe",
"autoRestart": true
},
"usb-listener": {
"command": "../listeners/GPII_USBListener.exe",
"autoRestart": true
}
},
"logging": {
/* Log level: FATAL, ERROR, WARN, INFO, or DEBUG */
"level": "DEBUG"
}
}
```


## Deployment

During the build process, gpii-app's Installer.ps1 will bundle the service into a standalone executable, and the
installer will put it in the same place as gpii-app.exe.

The installer will install and start the service.

## Command line options

`index.js` recognises the following command-line arguments

```
--install Install the Windows Service.
--serviceArgs=ARGS
Comma separated arguments to pass to the service (use with --install).
--uninstall Uninstall the Windows Service.
--service Only used when running as a service.
--config=FILE Specify the config file to use (default: service.json).
```


## Notes

## How it works

Services are slightly different to normal processes, the differences are handled by
[stegru/node-os-service#GPII-2338](https://github.com/stegru/node-os-service/tree/GPII-2338), which is a fork of
[node-os-service](https://github.com/stephenwvickers/node-os-service), where the service-related calls are made.

The service is started by Windows during the start up, then waits for a user to log in. (By listening for the
[SERVICE_CONTROL_SESSIONCHANGE](https://msdn.microsoft.com/library/windows/desktop/ms683241.aspx)
service control code).

When a user logs on, it starts the processes listed in [service-config.json](service-config.json) as that user and will
restart them if they die.

## Debugging

When installing the service, add the debug arguments using the `--nodeArgs`. For example:

```
node index.js --install --nodeArgs=--inspect-brk=0.0.0.0:1234
sc start gpii-service
```

Then quickly attach to the service, before Windows thinks it didn't start.

## IPC

### Client authentication

Initial research in [GPII-2399](https://issues.gpii.net/browse/GPII-2399).

* Service creates pipe and listens
* Service starts Child, passing pipe name in `GPII_SERVICE_PIPE` environment variable.
* pipe name isn't a secret - other processes see open pipes.
* Child connects to pipe
* Service creates an event
* [CreateEvent](https://msdn.microsoft.com/library/ms682396) (unnamed, so only the handle can be used to access it)
* [DuplicateHandle](https://msdn.microsoft.com/library/ms724251) creates another handle to the event that's tied to Child's process
* Service sends the Child's handle to the event through the pipe
* The handle isn't a secret - it's a number that's meaningless to any process other than Child.
* Client calls [SetEvent](https://msdn.microsoft.com/library/ms686211) on the handle.
* Only Child can signal that event
* Service detects the event's signal, access is granted.

14 changes: 14 additions & 0 deletions gpii-service/config/service.dev.child.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Development configuration, auto starts GPII.
{
"processes": {
"gpii": {
"command": "node ../gpii.js",
"ipc": "gpii",
"autoRestart": true
}
},
"logging": {
"level": "DEBUG"
},
"secretFile": "test-secret.json5"
}
14 changes: 14 additions & 0 deletions gpii-service/config/service.dev.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Development configuration, opens a pipe and waits for GPII to connect.
{
"processes": {
"gpii": {
"ipc": "gpii",
// Allow any process to connect.
"noAuth": true
}
},
"logging": {
"level": "DEBUG"
},
"secretFile": "test-secret.json5"
}
Loading