Skip to content

Commit

Permalink
docs: provide example plist
Browse files Browse the repository at this point in the history
  • Loading branch information
holysoles committed Apr 21, 2024
1 parent 617641a commit 9b18151
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ This runs on a Mac to wrap the native FaceTime application and its interaction w
- After downloading, ensure you set execute permissions on the executable: `chmod u=rwx ./facetime_macos_arm64`
- the environment variable `TRUSTED_PROXIES` should be set with the IP addresses/ranges that should be treated as proxy sources for Gin.

### Registering Daemon

A plist file for configuring a launchd daemon for running the web server is provided in the `/lib` folder of this repo. It can be loaded and unloaded with:

```bash
launchctl load -w ~/Library/LaunchAgents/localhost.facetime-service.plist
launchctl unload -w ~/Library/LaunchAgents/localhost.facetime-service.plist
```

## API Call Examples

The below details API calls that can be used to initialize calls from a http client.
Expand Down
20 changes: 20 additions & 0 deletions lib/localhost.facetime-service.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>localhost.facetime-service</string>
<key>Program</key>
<string>/Users/user/Desktop/facetime/facetime</string>
<key>WorkingDirectory</key>
<string>/Users/user/Desktop/facetime/</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>service.log</string>
<key>StandardErrorPath</key>
<string>service-error.log</string>
</dict>
</plist>

0 comments on commit 9b18151

Please sign in to comment.