Removed unused assets

This commit is contained in:
Victor Westerlund 2021-05-10 18:18:53 +02:00
parent 77dee86e80
commit 402f3ab694
6 changed files with 0 additions and 125 deletions

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "api/sources/stadia-avatar"]
path = api/sources/stadia-avatar
url = https://github.com/VictorWesterlund/stadia-avatar.git

View file

@ -1,5 +0,0 @@
<?php
header("Content-Type: application/json");
echo "{\"status\":\"404\",\"message\":\"Endpoint not found\"}";

View file

@ -1,33 +0,0 @@
<?php
header("Content-Type: application/json");
$api = preg_replace("/[^a-z0-9]/i","-",$_GET["api"]); // Replace special chars
// Return the API state
function online($online = false) {
$isError = $online === true ? true : false;
$message = $online === true ? "Online" : "Offline";
$color = $online === true ? "green" : "lightgrey";
$response = [
"schemaVersion" => 1,
"label" => "API",
"message" => $message,
"color" => $color,
"isError" => $isError
];
echo json_encode($response);
}
function checkStatus($api) {
if(!file_exists($api)) {
online(false);
return false;
}
online(true);
}
checkStatus($api);

View file

@ -1 +0,0 @@
Source repositories

@ -1 +0,0 @@
Subproject commit b586850c2694b755ac1c691c033569703ad12ec1

View file

@ -1,82 +0,0 @@
# == victorwesterlund.com ==
server {
listen 80;
listen [::]:80;
server_name www.victorwesterlund.com victorwesterlund.com;
return 301 https://victorwesterlund.com$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name victorwesterlund.com;
ssl on;
include snippets/ssl.conf;
root /var/www/victorwesterlund.com/public;
error_page 404 403 /netwatch/PAGE_NOT_FOUND.html;
location \ {
try_files $uri $uri.html $uri/ =404;
}
location ~ \.php$ {
add_header Access-Control-Allow-Origin *;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location ~ /\.git {
deny all;
return 404;
}
}
# == api.victorwesterlund.com ==
server {
listen 80;
listen [::]:80;
server_name api.victorwesterlund.com;
return 301 https://api.victorwesterlund.com$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name api.victorwesterlund.com;
ssl on;
include snippets/ssl.conf;
root /var/www/victorwesterlund.com/api/endpoint;
location / {
try_files $uri $uri.html $uri/ @extensionless-php;
index index.html index.htm index.php;
}
location ~ \.php$ {
try_files $uri $uri/ /router.php =404;
add_header Access-Control-Allow-Origin *;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location @extensionless-php {
rewrite ^(.*)$ $1.php last;
}
location ~ /\.git {
deny all;
return 404;
}
}