wip
This commit is contained in:
parent
ee77eade68
commit
47138a34ef
3 changed files with 49 additions and 6 deletions
|
@ -1,4 +1,3 @@
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_param QUERY_STRING $query_string;
|
fastcgi_param QUERY_STRING $query_string;
|
||||||
fastcgi_param REQUEST_METHOD $request_method;
|
fastcgi_param REQUEST_METHOD $request_method;
|
||||||
fastcgi_param CONTENT_TYPE $content_type;
|
fastcgi_param CONTENT_TYPE $content_type;
|
||||||
|
@ -24,6 +23,3 @@ fastcgi_param SERVER_NAME $server_name;
|
||||||
|
|
||||||
# PHP only, required if PHP was built with --enable-force-cgi-redirect
|
# PHP only, required if PHP was built with --enable-force-cgi-redirect
|
||||||
fastcgi_param REDIRECT_STATUS 200;
|
fastcgi_param REDIRECT_STATUS 200;
|
||||||
|
|
||||||
# This is the only thing that's different to the debian default.
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
|
|
29
data/nginx/run_program.conf
Normal file
29
data/nginx/run_program.conf
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
server_name ${server_name};
|
||||||
|
|
||||||
|
ssl_certificate /var/lib/dehydrated/certs/${server_name}/fullchain.pem;
|
||||||
|
ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
# Disable gzip (it makes scripts feel slower since they have to complete
|
||||||
|
# before getting gzipped)
|
||||||
|
gzip off;
|
||||||
|
|
||||||
|
# Set the root to /usr/lib (inside this location this means that we are
|
||||||
|
# giving access to the files under /usr/lib/cgi-bin)
|
||||||
|
root /usr/lib;
|
||||||
|
|
||||||
|
# Fastcgi socket
|
||||||
|
fastcgi_pass unix:/run/fcgiwrap.socket;
|
||||||
|
|
||||||
|
# Fastcgi parameters, include the standard ones
|
||||||
|
include /etc/nginx/params/fastcgi;
|
||||||
|
|
||||||
|
# Adjust non standard parameters (SCRIPT_FILENAME)
|
||||||
|
fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/hello.cgi;
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
'hardware',
|
'hardware',
|
||||||
'home',
|
'home',
|
||||||
'monitored',
|
'monitored',
|
||||||
|
'webserver',
|
||||||
],
|
],
|
||||||
'bundles': [
|
'bundles': [
|
||||||
'wireguard',
|
'wireguard',
|
||||||
|
@ -19,8 +20,22 @@
|
||||||
'gateway4': '10.0.0.1',
|
'gateway4': '10.0.0.1',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'wireguard': {
|
'apt': {
|
||||||
'my_ip': '10.200.128.11/24',
|
'packages': {
|
||||||
|
'alsa-utils': {},
|
||||||
|
'espeak': {},
|
||||||
|
'libnginx-mod-http-lua': {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'nginx': {
|
||||||
|
'vhosts': {
|
||||||
|
'rufbereitschaftsalarm.ckn.li': {
|
||||||
|
'content': 'nginx/run_program.conf',
|
||||||
|
'context': {
|
||||||
|
'script': 'hello',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'systemd': {
|
'systemd': {
|
||||||
'units': {
|
'units': {
|
||||||
|
@ -50,5 +65,8 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'wireguard': {
|
||||||
|
'my_ip': '10.200.128.11/24',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue