mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-26 07:24:40 +01:00
30 lines
585 B
Text
30 lines
585 B
Text
|
# RaspiBlitz public.conf server configuration
|
||
|
#
|
||
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
|
||
|
location ^~ /.well-known/acme-challenge/ {
|
||
|
default_type "text/plain";
|
||
|
root /var/www/letsencrypt;
|
||
|
}
|
||
|
|
||
|
root /var/www/public;
|
||
|
|
||
|
index index.html;
|
||
|
|
||
|
server_name _;
|
||
|
|
||
|
location / {
|
||
|
# make sure to have https link to exact same host that was called
|
||
|
sub_filter '<a href="https://HOST_SET_BY_NGINX/' '<a href="https://$host/';
|
||
|
|
||
|
# First attempt to serve request as file, then
|
||
|
# as directory, then fall back to displaying a 404.
|
||
|
try_files $uri $uri/ =404;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|