Merge pull request 'Refactoring and updating code for deployment to a caprover server' (#1) from caprover into master
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM docker.io/nginx:1-alpine
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY ./www /www
|
||||||
4
captain-definition
Normal file
4
captain-definition
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 2,
|
||||||
|
"dockerfilePath": "./Dockerfile"
|
||||||
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
location / {
|
|
||||||
return 301 https://www.jnf.me$request_uri;
|
|
||||||
}
|
|
||||||
25
jnf.me.sconf
25
jnf.me.sconf
@@ -1,25 +0,0 @@
|
|||||||
if ($host != www.jnf.me) {
|
|
||||||
return 301 https://www.jnf.me$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
index index.php index.html index.htm;
|
|
||||||
try_files $uri /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /lucy {
|
|
||||||
index index.php index.html index.htm;
|
|
||||||
try_files $uri /lucy.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
if (!-f $document_root$fastcgi_script_name) {
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
fastcgi_pass unix:/run/php/php7.4-fpm-ptools.jaywll.co.sock;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
include /etc/nginx/fastcgi_params;
|
|
||||||
include /home/jason/conf/web/ptools.jaywll.co/nginx.fastcgi_cache.conf*;
|
|
||||||
}
|
|
||||||
4
local-test.sh
Normal file
4
local-test.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Script used to spin up a local webserver for development & testing
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
podman run -it --rm -p 3000:80 $(podman build -q .)
|
||||||
14
nginx.conf
Normal file
14
nginx.conf
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
root /www;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
index index.html;
|
||||||
|
try_files $uri /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /lucy {
|
||||||
|
index index.html;
|
||||||
|
try_files $uri /lucy.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user