diff --git a/Dockerfile b/Dockerfile index f2544da..9bfea7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + FROM python:alpine WORKDIR /usr/local/app diff --git a/Makefile b/Makefile deleted file mode 100644 index 9c0aada..0000000 --- a/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -APP = jet-search -DOMAIN = jetsearch.com - -build: - docker build -t $(APP) . - docker save -o $(APP).tar $(APP) - -install: - openssl genrsa -out /etc/ssl/private/$(APP).key 2048 - openssl req -new -key /etc/ssl/private/$(APP).key -out /etc/ssl/certs/$(APP).csr -config openssl.cnf - openssl x509 -req -in /etc/ssl/certs/$(APP).csr -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -out /etc/ssl/certs/$(APP).crt -extfile openssl.cnf -extensions req_ext -days 500 -sha256 - cp nginx.cnf /etc/nginx/sites-enabled/$(APP) - echo "\nzone \"$(DOMAIN)\" {\n type master;\n file \"/etc/bind/db.$(DOMAIN)\";\n};" | tee -a /etc/bind/named.conf.local - cp zonefile.cnf /etc/bind/db.$(DOMAIN) - docker load -i $(APP).tar - docker run -p 5000:5000 --name $(APP) --restart always -d $(APP) diff --git a/install.sh b/install.sh index 4bdfe7d..905dca6 100755 --- a/install.sh +++ b/install.sh @@ -1,3 +1,8 @@ +#!/bin/sh + +# SPDX-License-Identifier: AGPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + APP=jet-search DOMAIN=jetsearch.com PORT=5000 diff --git a/src/static/style.css b/src/static/style.css index ec5db0d..0a0d652 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -1,8 +1,9 @@ /* -This file is part of VM-Experiments. -Licensed under the AGPL-3.0-or-later. See LICENSE for details. +SPDX-License-Identifier: AGPL-3.0-or-later +Copyright (c) 2024 Interstellar Development */ + * { margin: 0; padding: 0; diff --git a/src/templates/search.html b/src/templates/search.html index 76abec2..1b285c9 100644 --- a/src/templates/search.html +++ b/src/templates/search.html @@ -1,9 +1,10 @@ + + - diff --git a/src/wsgi.py b/src/wsgi.py index ec30084..aab9994 100644 --- a/src/wsgi.py +++ b/src/wsgi.py @@ -1,5 +1,5 @@ -# This file is part of VM-Experiments. -# Licensed under the AGPL-3.0-or-later. See LICENSE for details. +# SPDX-License-Identifier: AGPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development from flask import Flask, render_template, request