docs: consistenly spell nginx using lowercase
This matches the spelling used by the nginx project (which differs from the spelling used by the NGINX corporation)
This commit is contained in:
parent
6e0b6f2915
commit
873f57690a
11 changed files with 16 additions and 16 deletions
|
@ -23,7 +23,7 @@
|
||||||
8. If you installed a newer Akkoma version, you should run the database migrations `./bin/pleroma_ctl migrate`[²].
|
8. If you installed a newer Akkoma version, you should run the database migrations `./bin/pleroma_ctl migrate`[²].
|
||||||
9. Restart the Akkoma service.
|
9. Restart the Akkoma service.
|
||||||
10. Run `sudo -Hu postgres vacuumdb --all --analyze-in-stages`. This will quickly generate the statistics so that postgres can properly plan queries.
|
10. Run `sudo -Hu postgres vacuumdb --all --analyze-in-stages`. This will quickly generate the statistics so that postgres can properly plan queries.
|
||||||
11. If setting up on a new server, configure Nginx by using the `installation/nginx/akkoma.nginx` configuration sample or reference the Akkoma installation guide which contains the Nginx configuration instructions.
|
11. If setting up on a new server, configure nginx by using the `installation/nginx/akkoma.nginx` configuration sample or reference the Akkoma installation guide which contains the nginx configuration instructions.
|
||||||
|
|
||||||
[¹]: We assume the database name and user are both "akkoma". If not, you can find the correct name in your configuration files.
|
[¹]: We assume the database name and user are both "akkoma". If not, you can find the correct name in your configuration files.
|
||||||
[²]: If you have a from source installation, the command is `MIX_ENV=prod mix ecto.migrate`. Note that we prefix with `MIX_ENV=prod` to use the `config/prod.secret.exs` configuration file.
|
[²]: If you have a from source installation, the command is `MIX_ENV=prod mix ecto.migrate`. Note that we prefix with `MIX_ENV=prod` to use the `config/prod.secret.exs` configuration file.
|
||||||
|
|
|
@ -15,7 +15,7 @@ In most cases, you would need an extension installed to support parsing CJK text
|
||||||
|
|
||||||
Once you have the new search config , make sure you test it with the `pleroma` user in PostgreSQL (change `YOUR.CONFIG` to your real configuration name)
|
Once you have the new search config , make sure you test it with the `pleroma` user in PostgreSQL (change `YOUR.CONFIG` to your real configuration name)
|
||||||
```
|
```
|
||||||
SELECT ts_debug('YOUR.CONFIG', '安装和配置Nginx, ElixirとErlangをインストールします');
|
SELECT ts_debug('YOUR.CONFIG', '安装和配置nginx, ElixirとErlangをインストールします');
|
||||||
```
|
```
|
||||||
Check output of the query, and see if it matches your expectation.
|
Check output of the query, and see if it matches your expectation.
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ config :pleroma, :http_security,
|
||||||
enabled: false
|
enabled: false
|
||||||
```
|
```
|
||||||
|
|
||||||
In the Nginx config, add the following into the `location /` block:
|
In the nginx config, add the following into the `location /` block:
|
||||||
```nginx
|
```nginx
|
||||||
add_header X-XSS-Protection "0";
|
add_header X-XSS-Protection "0";
|
||||||
add_header X-Permitted-Cross-Domain-Policies none;
|
add_header X-Permitted-Cross-Domain-Policies none;
|
||||||
|
@ -146,7 +146,7 @@ listen 127.0.0.1:14447;
|
||||||
|
|
||||||
Set `server_name` to your i2p address.
|
Set `server_name` to your i2p address.
|
||||||
|
|
||||||
Reload Nginx:
|
Reload nginx:
|
||||||
```
|
```
|
||||||
systemctl restart i2pd.service --no-block
|
systemctl restart i2pd.service --no-block
|
||||||
systemctl reload nginx.service
|
systemctl reload nginx.service
|
||||||
|
|
|
@ -5,7 +5,7 @@ In addition, federating with such instances will also help furthering that goal.
|
||||||
This is a guide to show you how it can be easily done.
|
This is a guide to show you how it can be easily done.
|
||||||
|
|
||||||
This guide assumes you already got Akkoma working, and that it's running on the default port 4000.
|
This guide assumes you already got Akkoma working, and that it's running on the default port 4000.
|
||||||
This guide also assumes you're using Nginx as the reverse proxy.
|
This guide also assumes you're using nginx as the reverse proxy.
|
||||||
|
|
||||||
To install Tor on Debian / Ubuntu:
|
To install Tor on Debian / Ubuntu:
|
||||||
```
|
```
|
||||||
|
@ -74,7 +74,7 @@ config :pleroma, :http_security,
|
||||||
enabled: false
|
enabled: false
|
||||||
```
|
```
|
||||||
|
|
||||||
In the Nginx config, add the following into the `location /` block:
|
In the nginx config, add the following into the `location /` block:
|
||||||
```nginx
|
```nginx
|
||||||
add_header X-XSS-Protection "0";
|
add_header X-XSS-Protection "0";
|
||||||
add_header X-Permitted-Cross-Domain-Policies none;
|
add_header X-Permitted-Cross-Domain-Policies none;
|
||||||
|
@ -90,7 +90,7 @@ listen 127.0.0.1:8099;
|
||||||
|
|
||||||
Set the `server_name` to your onion address.
|
Set the `server_name` to your onion address.
|
||||||
|
|
||||||
Reload Nginx:
|
Reload nginx:
|
||||||
```
|
```
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
```
|
```
|
||||||
|
|
|
@ -26,7 +26,7 @@ akkoma javascript.
|
||||||
|
|
||||||
Once that's out of the way, we can point our webserver at varnish. This
|
Once that's out of the way, we can point our webserver at varnish. This
|
||||||
|
|
||||||
=== "Nginx"
|
=== "nginx"
|
||||||
|
|
||||||
upstream phoenix {
|
upstream phoenix {
|
||||||
server 127.0.0.1:6081 max_fails=5 fail_timeout=60s;
|
server 127.0.0.1:6081 max_fails=5 fail_timeout=60s;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# Storing Remote Media
|
# Storing Remote Media
|
||||||
|
|
||||||
Akkoma does not store remote/federated media by default. The best way to achieve this is to change Nginx to keep its reverse proxy cache
|
Akkoma does not store remote/federated media by default. The best way to achieve this is to change nginx to keep its reverse proxy cache
|
||||||
for a year and to activate the `MediaProxyWarmingPolicy` MRF policy in Akkoma which will automatically fetch all media through the proxy
|
for a year and to activate the `MediaProxyWarmingPolicy` MRF policy in Akkoma which will automatically fetch all media through the proxy
|
||||||
as soon as the post is received by your instance.
|
as soon as the post is received by your instance.
|
||||||
|
|
||||||
## Nginx
|
## nginx
|
||||||
|
|
||||||
The following are excerpts from the [suggested nginx config](https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/installation/nginx/akkoma.nginx) that demonstrates the necessary config for the media proxy to work.
|
The following are excerpts from the [suggested nginx config](https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/installation/nginx/akkoma.nginx) that demonstrates the necessary config for the media proxy to work.
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ doas -u akkoma env MIX_ENV=prod mix phx.server
|
||||||
|
|
||||||
If you want to open your newly installed instance to the world, you should run nginx or some other webserver/proxy in front of Akkoma and you should consider to create an OpenRC service file for Akkoma.
|
If you want to open your newly installed instance to the world, you should run nginx or some other webserver/proxy in front of Akkoma and you should consider to create an OpenRC service file for Akkoma.
|
||||||
|
|
||||||
#### Nginx
|
#### nginx
|
||||||
|
|
||||||
* Install nginx, if not already done:
|
* Install nginx, if not already done:
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ sudo -Hu akkoma MIX_ENV=prod mix phx.server
|
||||||
|
|
||||||
If you want to open your newly installed instance to the world, you should run nginx or some other webserver/proxy in front of Akkoma and you should consider to create a systemd service file for Akkoma.
|
If you want to open your newly installed instance to the world, you should run nginx or some other webserver/proxy in front of Akkoma and you should consider to create a systemd service file for Akkoma.
|
||||||
|
|
||||||
#### Nginx
|
#### nginx
|
||||||
|
|
||||||
* Install nginx, if not already done:
|
* Install nginx, if not already done:
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ sudo -Hu akkoma MIX_ENV=prod mix phx.server
|
||||||
|
|
||||||
If you want to open your newly installed instance to the world, you should run nginx or some other webserver/proxy in front of Akkoma and you should consider to create a systemd service file for Akkoma.
|
If you want to open your newly installed instance to the world, you should run nginx or some other webserver/proxy in front of Akkoma and you should consider to create a systemd service file for Akkoma.
|
||||||
|
|
||||||
#### Nginx
|
#### nginx
|
||||||
|
|
||||||
* Install nginx, if not already done:
|
* Install nginx, if not already done:
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ sudo -Hu akkoma MIX_ENV=prod mix phx.server
|
||||||
|
|
||||||
If you want to open your newly installed instance to the world, you should run nginx or some other webserver/proxy in front of Akkoma and you should consider to create a systemd service file for Akkoma.
|
If you want to open your newly installed instance to the world, you should run nginx or some other webserver/proxy in front of Akkoma and you should consider to create a systemd service file for Akkoma.
|
||||||
|
|
||||||
#### Nginx
|
#### nginx
|
||||||
|
|
||||||
* Install nginx, if not already done:
|
* Install nginx, if not already done:
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ It probably won't work over the public internet quite yet, however, as we still
|
||||||
|
|
||||||
Assuming you want to open your newly installed federated social network to, well, the federation, you should run nginx or some other webserver/proxy in front of Akkoma. It is also a good idea to set up Akkoma to run as a system service.
|
Assuming you want to open your newly installed federated social network to, well, the federation, you should run nginx or some other webserver/proxy in front of Akkoma. It is also a good idea to set up Akkoma to run as a system service.
|
||||||
|
|
||||||
#### Nginx
|
#### nginx
|
||||||
|
|
||||||
* Install nginx, if not already done:
|
* Install nginx, if not already done:
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ Assuming you want to open your newly installed federated social network to, well
|
||||||
|
|
||||||
* Append the following line at the end of the `http` block in `/etc/nginx/nginx.conf`:
|
* Append the following line at the end of the `http` block in `/etc/nginx/nginx.conf`:
|
||||||
|
|
||||||
```Nginx
|
```nginx
|
||||||
include sites-enabled/*;
|
include sites-enabled/*;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue