Page MenuHomeDevCentral

Configure photo.nasqueron.org as alias for Pixelfed
Open, NormalPublic

Description

photos.nasqueron.org is a Pixelfed instance configured through PaaS Docker.

Should cope with alias for hostnames, so we can use photo (without s) as subdomain alias.

Already configured in DNS.

Event Timeline

dereckson triaged this task as Normal priority.Aug 21 2023, 20:10
dereckson created this task.

Phabricator uses this:

{%- if aliases %}

#   -------------------------------------------------------------
#   Redirects for app aliases domains
#   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

server {
    listen 80;
    listen [::]:80;
    server_name {{ aliases }};

    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;

    return 301 https://{{ fqdn }}$request_uri;
}
{%- endif %}

We can configure aliases in pillar directly, that's already passed to nginx configuration template.