Merge pull request #2 from VictorWesterlund/0.1.0

0.1.0_dev-11260308
This commit is contained in:
Victor Westerlund 2020-11-28 16:01:51 +01:00 committed by GitHub
commit 4957cf1f75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 0 deletions

0
.gitignore vendored Normal file
View file

0
api/index.php Normal file
View file

11
public/index.html Normal file
View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Victor Westerlund</title>
</head>
<body>
<p>Too Early.. but not 425!</p>
</body>
</html>

35
server.conf Normal file
View file

@ -0,0 +1,35 @@
server {
listen 80;
listen [::]:80;
server_name www.victorwesterlund.com victorwesterlund.com;
return 301 https://www.victorwesterlund.com$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name www.victorwesterlund.com;
ssl on;
include snippets/ssl.conf;
root /var/www/victorwesterlund.com;
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;
}
}