refs #437 delete innecesaries files and changes config ednpoint to status
parent
6a389014cc
commit
232d35ae0c
|
@ -1,25 +0,0 @@
|
|||
# OpenGnsys ogdhcp configuration for Apache.
|
||||
|
||||
Alias /opengnsys3/rest OGHDPCDIR
|
||||
|
||||
# PHP-FPM configuration
|
||||
<IfModule proxy_fcgi_module>
|
||||
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
|
||||
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Default configuration.
|
||||
<Directory OGHDPCDIR>
|
||||
Require all granted
|
||||
Options -Indexes +FollowSymLinks
|
||||
DirectoryIndex index.php
|
||||
AddType octet/stream .pkg
|
||||
Header set Access-Control-Allow-Origin "*"
|
||||
Header set Access-Control-Allow-Methods "GET,POST,OPTIONS,DELETE,PUT"
|
||||
Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
|
||||
FallbackResource /index.php
|
||||
</Directory>
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"oglive": [
|
||||
{
|
||||
"distribution": "focal",
|
||||
"kernel": "5.11.0-22-generic",
|
||||
"architecture": "amd64",
|
||||
"revision": "r20210413",
|
||||
"directory": "ogLive-5.11.0-r20210413",
|
||||
"iso": "ogLive-focal-5.11.0-22-generic-amd64-r20210413.992ebb9.iso"
|
||||
}
|
||||
],
|
||||
"default": 0
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?php
|
||||
// hostname: Common Name of the ogAdmSrv certificate
|
||||
// port: the port stunnel4 is listening on
|
||||
define('OG_REST_URL', 'https://ogAdmSrv.opengnsys.local:48888/');
|
||||
?>
|
|
@ -1,5 +0,0 @@
|
|||
<?php
|
||||
// hostname: Common Name of the ogAdmSrv certificate
|
||||
// port: the port stunnel4 is listening on
|
||||
define('OG_REST_URL', 'https://__OGADMSRV_HOSTNAME__:__OGADMSRV_PORT__/');
|
||||
?>
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"directory": "/opt/opengnsys/images",
|
||||
"images": [],
|
||||
"ous": []
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIDtzCCAZ8CAhABMA0GCSqGSIb3DQEBCwUAMB0xGzAZBgNVBAMMEmNhLm9wZW5n
|
||||
bnN5cy5sb2NhbDAeFw0yNDAyMTMxNzI2MDlaFw0yNTAyMjIxNzI2MDlaMCUxIzAh
|
||||
BgNVBAMMGldlYkNvbnNvbGUub3Blbmduc3lzLmxvY2FsMIIBIjANBgkqhkiG9w0B
|
||||
AQEFAAOCAQ8AMIIBCgKCAQEA4ZbzWdu3fZu/sJvAmugapuNe2SCmW+XjbnSn1GUS
|
||||
Rx/VYlyr7BBQDDQTfYnSvL2Nc0aCjkyjR2G5E9rTN2OAkvVST7lozt1sqCx1WXhH
|
||||
Skhb2tnWjCMWqEL+jhwNc6RlS3TVGAIdzGBiVl+tdMTGBJW0j1nvyGke0R5GOtem
|
||||
psuCkOGnhDJsGNY6hksVuJm9UY64GPGTO/KAFsbdjsvzegwFYxVIaodxNf545vsQ
|
||||
+OPRa42myXuEkP3ZSjrpeMYJ147XSF0v7zl10nckwHpEqP0cyfjXMHOicM4cLUqn
|
||||
VBGOifqSrPhw6hx5ti/a2Voop6utAvT/2Au8xTrJm5SssQIDAQABMA0GCSqGSIb3
|
||||
DQEBCwUAA4ICAQCJt+lCL6pJQQtXl0rF2v5ManknvfEdUbWCJ36504LdSG/1laEi
|
||||
Dw4xA4ziRV8X8AwAajUQLbP5KE167oMcEC8BlOgS+MEKK8erGhxBZbRUfS+ehryl
|
||||
6//eC6cZyAg5LWlqWZZ4VPdkT03gPr+qVkB416BeFxbbPghx+nLkr1ZG8cL3whcA
|
||||
dcE883dDeRAUh+BmlbCzmD3BhY86YbeY0YWf0Wm5eJfHlO2HRzPX+ewd0RSc++g6
|
||||
qRnt1vfRMN2jhyFC/VVFEvw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X/oK5vEDqoKMEkP35/zhsgbVuJYIjGrIIzq9yxg33wua
|
||||
pXyB29xNvu3E+n0jod9RuD+HYOmFHlfa+Jy3F5NWwxS+b5naDjeVkcZwfPPkwI+z
|
||||
uqpM0XgFL6CUBfR01rXCfF0Tfo3cQBd1THpan76ayUIKZgAXMY5Arg==
|
||||
-----END RSA PRIVATE KEY-----
|
|
@ -68,13 +68,13 @@ Regenerar plantilla - PUT /ogboot/pxe-templates
|
|||
}
|
||||
|
||||
/**
|
||||
* @Route("/ogboot/v1/config", name="getConfig", methods={"GET"})
|
||||
* @Route("/ogboot/v1/status", name="getStatus", methods={"GET"})
|
||||
* @OA\Get(
|
||||
* path="/ogboot/v1/config",
|
||||
* summary="Get ogboot configuration",
|
||||
* path="/ogboot/v1/status",
|
||||
* summary="Get ogboot status",
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="Configuration retrieved successfully",
|
||||
* description="Status retrieved successfully",
|
||||
* @OA\JsonContent(
|
||||
* type="object",
|
||||
* @OA\Property(property="disk_usage", type="object",
|
||||
|
@ -89,7 +89,7 @@ Regenerar plantilla - PUT /ogboot/pxe-templates
|
|||
* )
|
||||
* )
|
||||
*/
|
||||
public function getConfig(): Response
|
||||
public function getStatus(): Response
|
||||
{
|
||||
// Call oglivecli to get disk usage
|
||||
$diskUsageResult = $this->curlRequestService->callOgLive("disk_usage");
|
||||
|
|
Loading…
Reference in New Issue