diff --git a/Dockerfile b/Dockerfile index abd13ca..b04f42a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Sayantan Santra +# SPDX-License-Identifier: MIT + FROM lukemathwalker/cargo-chef:latest-rust-slim AS chef WORKDIR /chhoto-url diff --git a/Dockerfile.multiarch b/Dockerfile.multiarch index abb460f..fdad813 100644 --- a/Dockerfile.multiarch +++ b/Dockerfile.multiarch @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Sayantan Santra +# SPDX-License-Identifier: MIT + FROM scratch as builder-amd64 COPY ./actix/target/x86_64-unknown-linux-musl/release/chhoto-url /chhoto-url diff --git a/Makefile b/Makefile index f1bc916..57c0df9 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Sayantan Santra +# SPDX-License-Identifier: MIT + # .env file has the variables $DOCKER_USERNAME and $PASSWORD defined include .env diff --git a/README.md b/README.md index 76f97bc..f53ac81 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ + + + [![docker-pulls](https://img.shields.io/docker/pulls/sintan1729/chhoto-url)](https://hub.docker.com/r/sintan1729/chhoto-url) [![maintainer](https://img.shields.io/badge/maintainer-SinTan1729-blue)](https://github.com/SinTan1729) ![commit-since-latest-release](https://img.shields.io/github/commits-since/SinTan1729/chhoto-url/latest?sort=semver&label=commits%20since%20latest%20release) diff --git a/actix/Cargo.toml b/actix/Cargo.toml index 6af6a2b..184d8ef 100644 --- a/actix/Cargo.toml +++ b/actix/Cargo.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Sayantan Santra +# SPDX-License-Identifier: MIT + [package] name = "chhoto-url" version = "5.2.4" diff --git a/actix/src/auth.rs b/actix/src/auth.rs index 870732e..a87b0bf 100644 --- a/actix/src/auth.rs +++ b/actix/src/auth.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Sayantan Santra +// SPDX-License-Identifier: MIT + use actix_session::Session; use std::{env, time::SystemTime}; diff --git a/actix/src/database.rs b/actix/src/database.rs index 79c9b29..87ddec9 100644 --- a/actix/src/database.rs +++ b/actix/src/database.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Sayantan Santra +// SPDX-License-Identifier: MIT + use rusqlite::Connection; use serde::Serialize; diff --git a/actix/src/main.rs b/actix/src/main.rs index 6ce8bab..5dac36f 100644 --- a/actix/src/main.rs +++ b/actix/src/main.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Sayantan Santra +// SPDX-License-Identifier: MIT + use actix_files::{Files, NamedFile}; use actix_session::{storage::CookieSessionStore, Session, SessionMiddleware}; use actix_web::{ diff --git a/actix/src/utils.rs b/actix/src/utils.rs index cd94de8..5e4a951 100644 --- a/actix/src/utils.rs +++ b/actix/src/utils.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Sayantan Santra +// SPDX-License-Identifier: MIT + use nanoid::nanoid; use rand::seq::SliceRandom; use regex::Regex; diff --git a/compose.yaml b/compose.yaml index 3cf8630..e9ea700 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Sayantan Santra +# SPDX-License-Identifier: MIT + services: chhoto-url: image: sintan1729/chhoto-url:latest diff --git a/resources/index.html b/resources/index.html index 2b073de..bf4992f 100644 --- a/resources/index.html +++ b/resources/index.html @@ -1,3 +1,6 @@ + + + diff --git a/resources/static/404.html b/resources/static/404.html index 5f7bfae..16897cb 100644 --- a/resources/static/404.html +++ b/resources/static/404.html @@ -1,3 +1,6 @@ + + + @@ -23,4 +26,4 @@ - \ No newline at end of file + diff --git a/resources/static/script.js b/resources/static/script.js index 1640e99..7d4a79c 100644 --- a/resources/static/script.js +++ b/resources/static/script.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Sayantan Santra +// SPDX-License-Identifier: MIT + const prepSubdir = (link) => { let thisPage = new URL(window.location.href); let subdir = thisPage.pathname; diff --git a/resources/static/styles.css b/resources/static/styles.css index 4fc3411..55fae0a 100644 --- a/resources/static/styles.css +++ b/resources/static/styles.css @@ -1,3 +1,6 @@ +/* SPDX-FileCopyrightText: 2023 Sayantan Santra */ +/* SPDX-License-Identifier: MIT */ + @font-face { font-family: Montserrat; src: url('Montserrat-VF.woff2');