diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/api/index.php b/api/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..9db2d77 --- /dev/null +++ b/public/index.html @@ -0,0 +1,11 @@ + + + + + + Victor Westerlund + + +

Too Early.. but not 425!

+ + \ No newline at end of file diff --git a/server.conf b/server.conf new file mode 100644 index 0000000..ad3e7bf --- /dev/null +++ b/server.conf @@ -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; + } +} \ No newline at end of file