M README.md => README.md +1 -1
@@ 10,7 10,7 @@ sudo make install
# Use
```
-$ sourcehut-vanity blowry 0.0.0.0:8080
+$ sourcehut-vanity -u blowry -p 0.0.0.0:8080
```
Replace my username with yours, and enter an alternative address to bind to if desired. Redirects will be served like this:
M main.go => main.go +1 -1
@@ 1,6 1,6 @@
// sourcehut-vanity hosts an HTTP server that redirects HTTP requests to projects hosted on sourcehut. Example usage:
//
-// $ sourcehut-vanity blowry 0.0.0.0:8080
+// $ sourcehut-vanity -u blowry -p 0.0.0.0:8080
// # localhost:8080/sourcehut-vanity redirects to https://git.sr.ht/~blowry/sourcehut-vanity
// # localhost:8080/sourcehut-vanity/README.md redirects to https://git.sr.ht/~blowry/sourcehut-vanity/tree/master/README.md
// # localhost:8080/sourcehut-vanity?go-get=1 returns an HTML page with meta tags so go get can find the correct repository
M sourcehut-vanity.service => sourcehut-vanity.service +1 -1
@@ 7,7 7,7 @@ Type=simple
Restart=always
RestartSec=1
User=www-data
-ExecStart=/usr/bin/sourcehut-vanity blowry
+ExecStart=/usr/bin/sourcehut-vanity -u blowry
[Install]
WantedBy=multi-user.target