From 402f3ab694dd8eb01324afc0c0da0f49b9274b55 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Mon, 10 May 2021 18:18:53 +0200 Subject: [PATCH] Removed unused assets --- .gitmodules | 3 -- api/endpoint/router.php | 5 --- api/endpoint/status.php | 33 ---------------- api/sources/sources.md | 1 - api/sources/stadia-avatar | 1 - server.conf | 82 --------------------------------------- 6 files changed, 125 deletions(-) delete mode 100644 .gitmodules delete mode 100644 api/endpoint/router.php delete mode 100644 api/endpoint/status.php delete mode 100644 api/sources/sources.md delete mode 160000 api/sources/stadia-avatar delete mode 100644 server.conf diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index c2a3905..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "api/sources/stadia-avatar"] - path = api/sources/stadia-avatar - url = https://github.com/VictorWesterlund/stadia-avatar.git diff --git a/api/endpoint/router.php b/api/endpoint/router.php deleted file mode 100644 index 1d19914..0000000 --- a/api/endpoint/router.php +++ /dev/null @@ -1,5 +0,0 @@ - 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); \ No newline at end of file diff --git a/api/sources/sources.md b/api/sources/sources.md deleted file mode 100644 index a5c7baa..0000000 --- a/api/sources/sources.md +++ /dev/null @@ -1 +0,0 @@ -Source repositories \ No newline at end of file diff --git a/api/sources/stadia-avatar b/api/sources/stadia-avatar deleted file mode 160000 index b586850..0000000 --- a/api/sources/stadia-avatar +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b586850c2694b755ac1c691c033569703ad12ec1 diff --git a/server.conf b/server.conf deleted file mode 100644 index fe8cda0..0000000 --- a/server.conf +++ /dev/null @@ -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; - } -}