[bugfix] Various fixes (#699)

* [bugfix] Correctly style inputs and buttons

<input>, <textarea>, and <button> were incorrectly using the system-ui font previously; this commit fixes that. text-align: center; was added to <button> due to an inconsistency with .button where text-align would be off.

* [chore] Update binary installation instructions

This commit updates the example release mentioned in the docs, and mentions Caddy in the reverse proxy options.

* [bugfix] Remove redundant Caddyfile

Caddy automatically upgrades HTTP to HTTPS (see https://caddyserver.com/docs/automatic-https) so the upgrading part of the Caddyfile is redundant.
This commit is contained in:
Forever 2022-07-08 02:01:00 -06:00 committed by GitHub
parent dbb223c333
commit a6528fe576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 16 deletions

View File

@ -24,16 +24,16 @@ Now, download the latest GoToSocial release archive corresponding to the operati
(You can find the list of releases [right here](https://github.com/superseriousbusiness/gotosocial/releases), arranged with the newest release at the top.)
For example, to download version 0.3.1 for running on 64-bit Linux:
For example, to download version 0.3.7 for running on 64-bit Linux:
```bash
wget https://github.com/superseriousbusiness/gotosocial/releases/download/v0.3.1/gotosocial_0.3.1_linux_amd64.tar.gz
wget https://github.com/superseriousbusiness/gotosocial/releases/download/v0.3.7/gotosocial_0.3.7_linux_amd64.tar.gz
```
Then extract it:
```bash
tar -xzf gotosocial_0.3.1_linux_amd64.tar.gz
tar -xzf gotosocial_0.3.7_linux_amd64.tar.gz
```
This will put the `gotosocial` binary in your current directory, in addition to the `web` folder, which contains assets for the web frontend, and an `example` folder, which contains a sample configuration file.
@ -136,10 +136,6 @@ After you're done enable the service.
sudo systemctl enable --now gotosocial.service
```
## 8. Install the Admin Control Panel (optional)
## 8. Reverse proxy (optional)
At some point you'll likely want to do things like change instance information, and block domains you don't want to interact with. See the [admin panel](../admin/admin_panel.md) instructions for this.
## 9. Reverse proxy (optional)
If you want to run other webservers on port 443 or want to add an additional layer of security you might want to use [nginx](./nginx.md) or [Apache httpd](./apache-httpd.md) as reverse proxy
If you want to run other webservers on port 443 or want to add an additional layer of security you might want to use [nginx](./nginx.md), [Caddy](./caddy.md) or [Apache httpd](./apache-httpd.md) as reverse proxy

View File

@ -65,13 +65,7 @@ While editing the file above, you should replace 'example.org' with your domain.
The file you're about to create should look like this:
```Caddyfile
# Because we use a reverse proxy, Caddy won't redirect port 80 to 443 by default unless we tell it to.
example.org:80 {
redir https://example.org/{uri}
}
# The actual host configuration
example.org:443 {
example.org {
# Optional, but recommended, compress the traffic using proper protocols
encode zstd gzip

View File

@ -145,6 +145,8 @@ main {
padding: 0.5rem;
border: none;
cursor: pointer;
text-align: center;
font-family: 'Noto Sans', sans-serif;
&:hover {
background: $button_hover_bg;
@ -245,6 +247,7 @@ input, select, textarea {
color: $fg;
background: $bg;
width: 100%;
font-family: 'Noto Sans', sans-serif;
}
footer {