Commit f6355b12 authored by Ave's avatar Ave 🤔

Add nginx config.

parent b4da9e94
server {
listen 80;
listen 443 ssl;
server_name x.a3.pm;
root /var/www/xmpp;
ssl_certificate /opt/ejabberd/xa3pm.pem;
ssl_certificate_key /opt/ejabberd/xa3pm.pem;
rewrite ^/$ https://a3.pm/xmpp.html permanent;
# rewrite ^/(.*)$ https://a3.pm/$1 permanent;
location /.well-known {
try_files $uri =404;
}
}
server {
listen 80;
listen 443 ssl;
ssl_certificate /opt/ejabberd/xa3pm.pem;
ssl_certificate_key /opt/ejabberd/xa3pm.pem;
server_name a3.pm;
root /var/www/xmpp;
index index.html xmpp.html;
location / {
try_files $uri $uri/ =404;
}
location /.well-known/host-meta {
default_type 'application/xrd+xml';
add_header Access-Control-Allow-Origin '*' always;
}
location /.well-known/host-meta.json {
default_type 'application/jrd+json';
add_header Access-Control-Allow-Origin '*' always;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment