Update recommended nginx config

This commit is contained in:
silverpill 2022-12-27 21:15:19 +00:00
parent f21259b1f8
commit ad887d3136
2 changed files with 5 additions and 8 deletions

View file

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Changed
- Updated recommended nginx config.
### Fixed
- Fixed post and profile page redirections.

View file

@ -10,7 +10,7 @@ server {
}
server {
server_name example.tld;;
server_name example.tld;
listen 443 ssl http2;
listen [::]:443 ssl http2;
@ -36,13 +36,6 @@ server {
add_header X-Content-Type-Options "nosniff";
location / {
# Frontend
root /usr/share/mitra/www;
try_files $uri /index.html;
}
location ~ ^/(actor|api|contracts|feeds|media|nodeinfo|oauth|objects|users|.well-known) {
# Backend
proxy_pass http://127.0.0.1:8383;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;