-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#86 : cmdfreak_nginx.conf, cmdfreak.service and makefile update
- Loading branch information
1 parent
f80ccbe
commit f23b13b
Showing
3 changed files
with
32 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=CmdFreak | ||
After=network.service | ||
|
||
[Service] | ||
Type=simple | ||
Restart=no | ||
ExecStart=/usr/bin/cmdfreak | ||
ExecStop=/usr/bin/stopcmdfreak sample.conf /usr/bin/cmdfreak | ||
KillMode=process | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,15 @@ | ||
server { | ||
client_max_body_size 10m; | ||
listen 8080; | ||
listen [::]:8080; | ||
server_name localhost; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index cmdfreak.html index.html index.htm; | ||
} | ||
location /api/ { | ||
proxy_pass http://127.0.0.1:8085; | ||
proxy_read_timeout 1200; | ||
} | ||
} |
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