License Headers

This commit is contained in:
Patrick 2024-11-23 15:16:41 +01:00
parent 65a78a1fe0
commit 3de703e6d5
6 changed files with 17 additions and 23 deletions

View file

@ -1,3 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright (c) 2024 Interstellar Development
FROM python:alpine FROM python:alpine
WORKDIR /usr/local/app WORKDIR /usr/local/app

View file

@ -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)

View file

@ -1,3 +1,8 @@
#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright (c) 2024 Interstellar Development
APP=jet-search APP=jet-search
DOMAIN=jetsearch.com DOMAIN=jetsearch.com
PORT=5000 PORT=5000

View file

@ -1,8 +1,9 @@
/* /*
This file is part of VM-Experiments. SPDX-License-Identifier: AGPL-3.0-or-later
Licensed under the AGPL-3.0-or-later. See LICENSE for details. Copyright (c) 2024 Interstellar Development
*/ */
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;

View file

@ -1,9 +1,10 @@
<!DOCTYPE html>
<!-- <!--
This file is part of VM-Experiments. SPDX-License-Identifier: AGPL-3.0-or-later
Licensed under the AGPL-3.0-or-later. See LICENSE for details. Copyright (c) 2024 Interstellar Development
--> -->
<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>

View file

@ -1,5 +1,5 @@
# This file is part of VM-Experiments. # SPDX-License-Identifier: AGPL-3.0-or-later
# Licensed under the AGPL-3.0-or-later. See LICENSE for details. # Copyright (c) 2024 Interstellar Development
from flask import Flask, render_template, request from flask import Flask, render_template, request