diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fb745dc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM debian:stable-slim +WORKDIR /opt +COPY --chown=root --chmod=0755 sqpad /opt/sqpad +RUN mkdir -p -m 0755 /opt/Files +RUN touch /opt/Files/posts.json +COPY --chown=root --chmod=0755 Files/* /opt/Files/ +EXPOSE 8080 +CMD ["/opt/sqpad"] diff --git a/Files/footer.html b/Files/footer.html index 308b1d0..ceb748d 100644 --- a/Files/footer.html +++ b/Files/footer.html @@ -1,2 +1,5 @@ +
+
+SqPad by Squi diff --git a/Files/index.html b/Files/index.html index 9986952..084066c 100644 --- a/Files/index.html +++ b/Files/index.html @@ -134,4 +134,6 @@ - +
+ SqPad by Squi +
diff --git a/Files/posts.json b/Files/posts.json deleted file mode 100644 index f62f635..0000000 --- a/Files/posts.json +++ /dev/null @@ -1,2 +0,0 @@ -{"name":"llllllll","crypt":"U6O3QDZVQiFfRnj4aG0Exw==","date":"03/07/2023@16:39:26","id":790468326923469714} -{"name":"Hi","crypt":"2Mj3sF0C0loJjnWVgAB7tQ==","date":"03/07/2023@16:54:51","id":8071774849875630801} diff --git a/License.txt b/License.txt new file mode 100644 index 0000000..d77a552 --- /dev/null +++ b/License.txt @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2023 Justine PELLETREAU + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/README.md b/README.md index 7d84dae..83db27f 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,12 @@ A encrypted pastebin. ## Install Juste compile and launch it in the same folder as "Files". +## Docker +Start by ![installing docker](https://docs.docker.com/engine/install/) if need be, then: +``` +docker compose up -f docker-compose.yml -d +``` + ## Usage Simply enter a note on the form on the main page. Once submitted, the note is encrypted using DES-256. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5af4723 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3" +services: + sqpad: + image: sqpad + ports: + - "8080:8080" + diff --git a/sqpad b/sqpad new file mode 100755 index 0000000..5cbbb74 Binary files /dev/null and b/sqpad differ diff --git a/src/.main.rs.swp b/src/.main.rs.swp new file mode 100644 index 0000000..c2363b7 Binary files /dev/null and b/src/.main.rs.swp differ