forked from sdr-enthusiasts/airspy_adsb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add nginx to serve stats.json (sdr-enthusiasts#30)
- Loading branch information
Showing
8 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
user www-data; | ||
worker_processes 1; | ||
pid /run/nginx.pid; | ||
include /etc/nginx/modules-enabled/*.conf; | ||
daemon off; | ||
|
||
events { | ||
use epoll; | ||
worker_connections 32; | ||
} | ||
|
||
error_log off; | ||
|
||
http { | ||
server_tokens off; | ||
include mime.types; | ||
charset utf-8; | ||
|
||
access_log off; | ||
|
||
server { | ||
server_name _; | ||
listen 80 default_server; | ||
root /var/www/html | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
|
||
location / { | ||
alias /run/airspy_adsb; | ||
} | ||
|
||
} | ||
|
||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exec /etc/s6-overlay/scripts/nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
longrun |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/command/with-contenv bash | ||
# shellcheck shell=bash disable=SC1091 | ||
|
||
source /scripts/common | ||
|
||
if ! chk_enabled "${AIRSPY_ADSB_STATS}"; then | ||
exec sleep infinity | ||
fi | ||
|
||
exec s6wrap --quiet --prepend=nginx --timestamps --args /usr/sbin/nginx |