diff --git a/Dockerfile b/Dockerfile
index 743d0b8..6f3de70 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,8 +6,8 @@ RUN rustup target add "$TARGET"
RUN cargo install cargo-build-deps
-RUN cargo new --bin simply-shorten
-WORKDIR /simply-shorten
+RUN cargo new --bin chhoto-url
+WORKDIR /chhoto-url
RUN rustup target add x86_64-unknown-linux-musl
@@ -22,7 +22,7 @@ RUN cargo build --release --locked --target "$TARGET"
FROM scratch
-COPY --from=build /simply-shorten/target/x86_64-unknown-linux-musl/release/simply-shorten /simply-shorten
+COPY --from=build /chhoto-url/target/x86_64-unknown-linux-musl/release/chhoto-url /chhoto-url
COPY ./actix/resources /resources
-CMD ["/simply-shorten"]
+CMD ["/chhoto-url"]
diff --git a/README.md b/README.md
index 893b664..fc43003 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-[![docker-pulls](https://img.shields.io/docker/pulls/sintan1729/simply-shorten)](https://hub.docker.com/r/sintan1729/simply-shorten)
+[![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/simply-shorten/latest?sort=semver&label=commits%20since%20latest%20release)
+![commit-since-latest-release](https://img.shields.io/github/commits-since/SinTan1729/chhoto-url/latest?sort=semver&label=commits%20since%20latest%20release)
-# ![Logo](actix/resources/assets/favicon-32.png) Simply Shorten
+# ![Logo](actix/resources/assets/favicon-32.png) Chhoto URL
# What is it?
A simple selfhosted URL shortener with no unnecessary features.
@@ -68,7 +68,7 @@ place, resulting in possibly unwanted behavior.
## Building from source
Clone this repository
```
-git clone https://github.com/SinTan1729/simply-shorten
+git clone https://github.com/SinTan1729/chhoto-url
```
### 2. Set environment variables
@@ -94,13 +94,13 @@ You can optionally set the port the server listens on by appending `--port=[port
### `docker run` method
0. (Only if you really want to) Build the image
```
-docker build . -t simply-shorten:latest
+docker build . -t chhoto-url:latest
```
1. Run the image
```
docker run -p 4567:4567
-e password="password"
- -d simply-shorten:latest
+ -d chhoto-url:latest
```
1.a Make the database file available to host (optional)
```
@@ -109,7 +109,7 @@ docker run -p 4567:4567 \
-e password="password" \
-v ./urls.sqlite:/urls.sqlite \
-e db_url=/urls.sqlite \
- -d simply-shorten:latest
+ -d chhoto-url:latest
```
1.b Further, set the URL of your website (optional)
```
@@ -119,7 +119,7 @@ docker run -p 4567:4567 \
-v ./urls.sqlite:/urls.sqlite \
-e db_url=/urls.sqlite \
-e site_url="https://www.example.com" \
- -d simply-shorten:latest
+ -d chhoto-url:latest
```
You can also set the redirect method to Permanent 308 (default) or Temporary 307 by setting
@@ -135,6 +135,6 @@ pointing to illegal content. Since there are no logs, it's impossible to prove
that those links aren't created by you.
## Notes
-- It started as a fork of [this project](https://gitlab.com/draganczukp/simply-shorten).
+- It started as a fork of [this project](https://gitlab.com/draganczukp/chhoto-url).
- The list of adjectives and names used for random short url generation is a modified
version of [this list used by docker](https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go).
\ No newline at end of file
diff --git a/actix/Cargo.lock b/actix/Cargo.lock
index ff59a54..db08121 100644
--- a/actix/Cargo.lock
+++ b/actix/Cargo.lock
@@ -453,6 +453,19 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+[[package]]
+name = "chhoto-url"
+version = "4.4.0"
+dependencies = [
+ "actix-files",
+ "actix-session",
+ "actix-web",
+ "env_logger",
+ "rand",
+ "regex",
+ "rusqlite",
+]
+
[[package]]
name = "cipher"
version = "0.4.4"
@@ -1223,19 +1236,6 @@ dependencies = [
"libc",
]
-[[package]]
-name = "simply-shorten"
-version = "4.4.0"
-dependencies = [
- "actix-files",
- "actix-session",
- "actix-web",
- "env_logger",
- "rand",
- "regex",
- "rusqlite",
-]
-
[[package]]
name = "slab"
version = "0.4.8"
diff --git a/actix/Cargo.toml b/actix/Cargo.toml
index bf377a6..f340718 100644
--- a/actix/Cargo.toml
+++ b/actix/Cargo.toml
@@ -1,13 +1,13 @@
[package]
-name = "simply-shorten"
+name = "chhoto-url"
version = "4.4.0"
edition = "2021"
authors = ["Sayantan Santra
- Simply Shorten
+ Chhoto URL
@@ -26,7 +26,7 @@