Update from_scratch.md (#286)

* Update from_scratch.md

Fixing typos from: https://github.com/LemmyNet/lemmy-docs/issues/285

* Fixed types in from_scratch.md

Removed tls option
This commit is contained in:
Lucas 2023-12-05 19:38:41 +10:30 committed by GitHub
parent 0cd4bf29a9
commit 2cb074463c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ Note that it might not be the most obvious thing, but **creating the pictrs dire
Then copy the binary. Then copy the binary.
``` ```
sudo cp target/release/lemmy_server /opt/lemmy-server/lemmy_server sudo cp target/release/lemmy_server /opt/lemmy/lemmy-server/lemmy_server
``` ```
#### Configuration #### Configuration
@ -186,7 +186,7 @@ After=network.target
[Service] [Service]
User=lemmy User=lemmy
ExecStart=/opt/lemmy/lemmy-server/lemmy_server ExecStart=/opt/lemmy/lemmy-server/lemmy_server
Environment=LEMMY_CONFIG_LOCATION=/opt/lemmy/server/lemmy.hjson Environment=LEMMY_CONFIG_LOCATION=/opt/lemmy/lemmy-server/lemmy.hjson
Environment=PICTRS_ADDR=127.0.0.1:8080 Environment=PICTRS_ADDR=127.0.0.1:8080
Environment=RUST_LOG="info" Environment=RUST_LOG="info"
Restart=on-failure Restart=on-failure
@ -379,7 +379,7 @@ server {
set $proxpass "http://0.0.0.0:1234"; set $proxpass "http://0.0.0.0:1234";
if ($http_accept ~ "^application/.*$") { if ($http_accept ~ "^application/.*$") {
set $proxpass "http://0.0.0.0:1234"; set $proxpass "http://0.0.0.0:8536";
} }
if ($request_method = POST) { if ($request_method = POST) {
set $proxpass "http://0.0.0.0:8536"; set $proxpass "http://0.0.0.0:8536";