Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/paas-docker/nginx/files/vhosts/pixelfed.conf b/roles/paas-docker/nginx/files/vhosts/pixelfed.conf
index d76438a..ae7b358 100644
--- a/roles/paas-docker/nginx/files/vhosts/pixelfed.conf
+++ b/roles/paas-docker/nginx/files/vhosts/pixelfed.conf
@@ -1,47 +1,52 @@
# -------------------------------------------------------------
# Configuration for Docker PaaS front-end nginx
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Author: Sébastien Santoro aka Dereckson
# Created: 2018-11-16
# Source file: roles/paas-docker/nginx/files/vhosts/pixelfed.conf
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
server {
listen 80;
listen [::]:80;
server_name {{ fqdn }};
include includes/letsencrypt;
return 301 https://$host$request_uri;
}
server {
server_name {{ fqdn }};
include includes/tls;
ssl_certificate /srv/letsencrypt/etc/live/{{ fqdn }}/fullchain.pem;
ssl_certificate_key /srv/letsencrypt/etc/live/{{ fqdn }}/privkey.pem;
include includes/letsencrypt;
location / {
proxy_pass http://localhost:{{ app_port }};
include includes/proxy_params;
}
location /.well-known/change-password {
return 301 /settings/password;
}
+ # Allow @username to be coherent with Mastodon
+ location ~ /@(.*) {
+ return 301 /$1;
+ }
+
root /var/wwwroot-502/_default;
error_page 502 /502.html;
location /502.html {}
}

File Metadata

Mime Type
text/x-diff
Expires
Thu, Sep 18, 11:39 (9 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2990687
Default Alt Text
(1 KB)

Event Timeline