-
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
Showing
5 changed files
with
38 additions
and
2 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 +1,3 @@ | ||
# Sample Environment Variables File | ||
REACT_APP_PROXMOX_API=<URL> | ||
REACT_APP_PROXMOX_API_KEY=<STRING> |
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Config file for the Dashboard project | ||
* Reads the config out of the .env file | ||
* @author ooemperor | ||
*/ | ||
import configData from "./config.sec.json" | ||
|
||
/** | ||
* Class for the config object used in total | ||
*/ | ||
export class Config{ | ||
proxmoxApi: string; | ||
proxmoxApiKey: string; | ||
|
||
/** | ||
* Constructor of the config | ||
*/ | ||
constructor() { | ||
|
||
this.proxmoxApi = configData.proxmox.api; | ||
this.proxmoxApiKey = configData.proxmox.apiKey; | ||
} | ||
} | ||
|
||
export const config = new Config(); |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"proxmox":{ | ||
"api": "", | ||
"apiKey": "" | ||
} | ||
} |
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