Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Add service and proxy files
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Doubet committed Feb 4, 2020
1 parent c887b70 commit 1900df9
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
17 changes: 17 additions & 0 deletions PROXY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Reverse Proxy using IIS

**Note**: I have yet to get this to work with a subdirectory. So, if your domain is https://mydomain.com, it can only work there and not at https://mydomain.com/plume as far as I am aware. If anyone figures this out, please let me know!

1. You need to have installed URL Rewrite (Figure 1)
2. From the Sites, choose your site, in the middle pane, double click URL Rewrite.
3. On right hand side, Add Rule, Blank Rule
4. Name it Plume with pattern (.*) with Action type Rewrite and Rewrite URL of http://127.0.0.1:7878/{R:1} (Figure 2)
5. Apply

| ![Plume_Win_IIS_01](https://user-images.githubusercontent.com/4871781/73027497-2aa79c00-3df9-11ea-93a1-5109b614a5e3.png) |
| :---: |
| **Figure 1** |

| ![Plume_Win_IIS_02](https://user-images.githubusercontent.com/4871781/73027553-3f842f80-3df9-11ea-99db-c9ecb88ae543.png) |
| :---: |
| **Figure 2** |
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ For those of you who do not want to spend almost 4 hours compiling Plume for Win
5. Initialise search index `plm search init`
6. Set up your instance `plm instance new`
7. Create admin account `plm users new --admin -n "adminusername" -N "Human Readable Admin Name" -b "Biography of Admin here" -p hackmeplease`
8. Create a task schedule to run Plume on system startup
9. Create a reverse proxy in IIS
8. Create a task schedule to run Plume on system startup (Read [SERVICE.md](SERVICE.md))
9. Create a reverse proxy in IIS (Read [PROXY.md](PROXY.md))

## Other

Expand Down
25 changes: 25 additions & 0 deletions SERVICE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Service Setup

### This is the preferred method of starting Plume on Windows

Once everything is working, you may be annoyed by having to always open a command prompt to start Plume. We can configure it to start on boot via Task Scheduler.

1. Open up the Task Scheduler app
2. On right hand side, choose Create Task
3. **General tab** - Name: "Plume"; Description: "Plume: a federated blogging application"; Run whether user is logged on or not; Run with highest privileges; Configure for Windows 10 (Figure 1)
4. **Triggers tab** - Begin the task At startup; Optionally Delay task for 30 seconds; Enabled (Figure 2)
5. **Actions** - Action: Start a program; Browse to plume.exe (default is C:\Users\%USERNAME%\.cargo\bin\plume.exe); Start in: C:\path\to\.env (Figure 3)
6. **Conditions** - Uncheck everything
7. **Settings** - Allow task to be run on demand; Run task as soon as possible after a scheduled start is missed; If the running task does not end when requested, for it to stop; Do not start a new instance

| ![Plume_Win_TS_01](https://user-images.githubusercontent.com/4871781/73027875-ec5eac80-3df9-11ea-8937-2d5335a5a882.png) |
| :---: |
| **Figure 1** |

| ![Plume_Win_TS_02](https://user-images.githubusercontent.com/4871781/73027475-18c5f900-3df9-11ea-8dbd-f7cc22088d5b.png) |
| :---: |
| **Figure 2** |

| ![Plume_Win_TS_03](https://user-images.githubusercontent.com/4871781/73027487-21b6ca80-3df9-11ea-986d-522731c82b01.png) |
| :---: |
| **Figure 3** |

0 comments on commit 1900df9

Please sign in to comment.