victorwesterlund.com/server.conf
Victor Westerlund 26ec726238 0.2.0 Pre-Release
Added intro text and replaced "Programming languages" with an email address instead. I feel that "exposing" my languges as some sort of trophy is a bit bold.

Got rid of the contact page "nav" for now. Altough the only thing I want to add besides e-mail is a PGP-key; I might go about it another way.

More love should be put into the responsivness of this page, especially the "not_found.html" style.

Not to mention Service Workers..
2020-11-30 07:14:18 +01:00

76 lines
No EOL
1.7 KiB
Text

# == victorwesterlund.com ==
server {
listen 80;
listen [::]:80;
server_name www.victorwesterlund.com victorwesterlund.com;
return 301 https://victorwesterlund.com$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name victorwesterlund.com;
ssl on;
include snippets/ssl.conf;
root /var/www/github_victorwesterlund_victorwesterlund.com/public;
error_page 404 403 /not_found.html;
location \ {
try_files $uri $uri.html $uri/ =404;
}
location ~ \.php$ {
add_header Access-Control-Allow-Origin *;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location ~ /\.git {
deny all;
return 404;
}
}
# == api.victorwesterlund.com ==
server {
listen 80;
listen [::]:80;
server_name api.victorwesterlund.com;
return 301 https://api.victorwesterlund.com$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name api.victorwesterlund.com;
ssl on;
include snippets/ssl.conf;
root /var/www/github_victorwesterlund_victorwesterlund.com/api;
location \ {
try_files $uri $uri.html $uri/ =404;
}
location ~ \.php$ {
add_header Access-Control-Allow-Origin *;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location ~ /\.git {
deny all;
return 404;
}
}