scripts/nginx_config_maker/prod/lxc_containers/joinfediverse.org

1.2 KiB

server { if ($host = www.joinfediverse.org) { return 301 https://$host$request_uri; } # managed by Certbot

if ($host = joinfediverse.org) { return 301 https://$host$request_uri; } # managed by Certbot

listen 80; listen [::]:80; server_name joinfediverse.org www.joinfediverse.org; root /home/www/joinfediverse/public; }

server { listen 443 http2; listen [::]:443 http2; server_name joinfediverse.org www.joinfediverse.org;

root /home/www/joinfediverse/public;

location / {

try_files $uri /index.html$is_args$args; }

error_log /var/log/nginx/joinfediverse_error.log; access_log /var/log/nginx/joinfediverse_access.log;

}