Skip to content

Commit 08dfdf9

Browse files
author
mirkobrombin
committed
feat: add example configuration files for Docker, NodeJS, and Python plugins
1 parent b4b6965 commit 08dfdf9

File tree

4 files changed

+91
-0
lines changed

4 files changed

+91
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"domain": "test.com",
3+
"port": 8080,
4+
"root_directory": "",
5+
"request_timeout": 60,
6+
"plugin_configs": {
7+
"DockerStandardPlugin": {
8+
"enable": true,
9+
"dockerfile_path": "",
10+
"image_name": "ghost:latest",
11+
"container_port": "2368",
12+
"cli_command": "podman",
13+
"build_args": {},
14+
"run_args": [
15+
"--rm",
16+
"-p",
17+
"2368:2368",
18+
"-v",
19+
"/home/mirko/ghost-content:/var/lib/ghost/content",
20+
"-v",
21+
"/home/mirko/ghost-content/config.production.json:/var/lib/ghost/config.production.json",
22+
"-e",
23+
"NODE_ENV=production"
24+
],
25+
"proxy_paths": [
26+
"/"
27+
]
28+
}
29+
}
30+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"database": {
3+
"client": "sqlite3",
4+
"connection": {
5+
"filename": "/var/lib/ghost/content/data/ghost.db"
6+
}
7+
},
8+
"url": "http://test.com:8080",
9+
"server": {
10+
"port": 2368,
11+
"host": "0.0.0.0"
12+
},
13+
"paths": {
14+
"contentPath": "/var/lib/ghost/content"
15+
}
16+
}

public/confs.example/nodejs.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"domain": "example.com",
3+
"port": 8080,
4+
"root_directory": "/home/mirko/Projects/GoUp/GoUP/public/node_test/static/",
5+
"request_timeout": 60,
6+
"plugin_configs": {
7+
"NodeJSPlugin": {
8+
"enable": true,
9+
"port": "3000",
10+
"root_dir": "/home/mirko/Projects/GoUp/GoUP/public/node_test/app/",
11+
"entry": "server.js",
12+
"install_deps": true,
13+
"node_path": "/usr/bin/node",
14+
"package_manager": "pnpm",
15+
"proxy_paths": [
16+
"/api/",
17+
"/backend/"
18+
]
19+
}
20+
}
21+
}

public/confs.example/python.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"domain": "test.com",
3+
"port": 8081,
4+
"root_directory": "",
5+
"request_timeout": 60,
6+
"plugin_configs": {
7+
"PythonPlugin": {
8+
"enable": true,
9+
"port": "3001",
10+
"root_dir": "/home/mirko/Projects/GoUp/GoUP/public/python_test/app/",
11+
"app_type": "flask",
12+
"install_deps": true,
13+
"use_venv": true,
14+
"env_vars": {
15+
"FLASK_APP": "app.py",
16+
"FLASK_ENV": "development"
17+
},
18+
"package_manager": "pip",
19+
"proxy_paths": [
20+
"/"
21+
]
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)