-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ae8b96
commit c091e57
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
# Cockpit CMS Proxy | ||
|
||
A simple proxy to fetch assets from [Cockpit CMS](https://getcockpit.com/). | ||
|
||
--- | ||
|
||
Install [nix package manager](https://nixos.org/download.html) to manage dependencies. | ||
|
||
Start a [nix shell](https://nixos.org/manual/nix/unstable/command-ref/nix-shell.html#options) with | ||
|
||
```shell | ||
nix-shell | ||
``` | ||
|
||
Set the environment variables for your Cockpit CMS: | ||
|
||
```shell | ||
export COCKPIT_BASE_URL=https://example.com | ||
export COCKPIT_API_TOKEN=1234 | ||
export ASSET_PATH_PATTERN=/images/pattern | ||
export TARGET_HOST=localhost | ||
export TARGET_PORT=8080 | ||
export PORT=8000 | ||
``` | ||
|
||
Run the proxy with the command: | ||
|
||
```shell | ||
startDev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters