Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
sargunv committed Oct 14, 2021
1 parent 887dd31 commit e203db7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "svurl-service"
name = "svurl-resolver"
version = "0.1.0"
edition = "2018"

authors = ["Sargun Vohra <sargun.vohra@gmail.com>"]
description = "Personal shortlinking and CLI-style bookmarks backend"
description = "Personal CLI-style bookmarks backend"
readme = "README.md"
homepage = "https://svurl.co/"
repository = "https://github.com/sargunv/svurl-service.git"
repository = "https://github.com/sargunv/svurl.git"
license = "Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -23,7 +23,7 @@ cargo-deb = "1.32.0"

[package.metadata.deb]
maintainer-scripts = "debian/"
extended-description = "Backend endpoint for a CLI-style bookmark and shortlinking service, similar to http://www.bunny1.org/."
extended-description = "Backend endpoint for a CLI-style bookmarks service, similar to http://www.bunny1.org/."

[package.metadata.deb.systemd-units]
enable = true
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Svurl Service
# Svurl

Backend endpoint for a CLI-style bookmark service, similar to http://www.bunny1.org/.

Expand All @@ -16,12 +16,12 @@ curl -L https://packagecloud.io/sargunv/public/gpgkey | sudo apt-key add -
echo 'deb https://packagecloud.io/sargunv/public/any/ any main' | sudo tee -a /etc/apt/sources.list

# Update your sources and install
sudo apt update && sudo apt install svurl-service
sudo apt update && sudo apt install svurl-resolver
```

Alternatively, download the `.deb` package for your system from [Github Releases](https://github.com/sargunv/svurl-service/releases/latest) and install it with `dpkg`.
Alternatively, download the `.deb` package for your system from [Github Releases](https://github.com/sargunv/svurl/releases/latest) and install it with `dpkg`.

To override settings like the port, run `sudo systemctl edit svurl-service`, set [applicable environment variables](https://rocket.rs/v0.4/guide/configuration/#environment-variables), and run `sudo systemctl restart svurl-service`. For example:
To override settings like the port, run `sudo systemctl edit svurl-resolver`, set [applicable environment variables](https://rocket.rs/v0.4/guide/configuration/#environment-variables), and run `sudo systemctl restart svurl-resolver`. For example:

```
[Service]
Expand Down
8 changes: 4 additions & 4 deletions config.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ command "github" "gh" {
regex "https://github.com/marketplace?query={2}&type={1}" \
"^--(apps|actions)\\s+(.*)$"

// open a specific github user or repo ("gh sargunv/svurl-service")
// open a specific github user or repo ("gh sargunv/svurl")
regex "https://github.com{/owner}{/repo}" \
"^(?P<owner>[-a-zA-Z0-9]+)/(?P<repo>[-a-zA-Z0-9]+)?$"

// open a specific github issue (gh sargunv/svurl-service#123")
// open a specific github issue (gh sargunv/svurl#123")
regex "https://github.com{/owner}{/repo}/issues{/issue}" \
"^(?P<owner>[-a-zA-Z0-9]+)/(?P<repo>[-a-zA-Z0-9]+)#(?P<issue>[0-9]+)$"
noargs "https://github.com"
Expand All @@ -40,8 +40,8 @@ command "github" "gh" {
accept "gh --actions upload artifact" "https://github.com/marketplace?query=upload%20artifact&type=actions"
accept "gh --apps gitpod" "https://github.com/marketplace?query=gitpod&type=apps"
accept "gh sargunv/" "https://github.com/sargunv"
accept "gh sargunv/svurl-service" "https://github.com/sargunv/svurl-service"
accept "gh sargunv/svurl-service#123" "https://github.com/sargunv/svurl-service/issues/123"
accept "gh sargunv/svurl" "https://github.com/sargunv/svurl"
accept "gh sargunv/svurl#1" "https://github.com/sargunv/svurl/issues/1"
}
}

Expand Down
4 changes: 2 additions & 2 deletions debian/service
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[Unit]
Description=Svurl Service
Description=Svurl Resolver
After=network-online.target

[Service]
Environment="ROCKET_ADDRESS=0.0.0.0"
ExecStart=/usr/bin/svurl-service
ExecStart=/usr/bin/svurl-resolver
Restart=always

[Install]
Expand Down

0 comments on commit e203db7

Please sign in to comment.