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
log_format api_main '$remote_addr - $remote_user [$time_local] "$request"' | |
'$status $body_bytes_sent "$http_referer" "$http_user_agent"'; | |
server { | |
access_log /var/log/nginx/api_access.log api_main; | |
listen 443; | |
server_name <domain-url>; | |
location /ota { |
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
server { | |
listen 443 ssl; | |
server_name example.com; | |
ssl_certificate example.com.rsa.crt; | |
ssl_certificate_key example.com.rsa.key; | |
ssl_certificate example.com.ecdsa.crt; | |
ssl_certificate_key example.com.ecdsa.key; | |
} |
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
apiVersion: k8s.nginx.org/v1 | |
kind: VirtualServer | |
metadata: | |
name: app-ingress | |
spec: | |
host: app.example.com | |
tls: | |
secret: app-secret-ecc | |
upstreams: | |
- name: web-server-payload |
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
stream { | |
upstream backend { | |
zone backend 64k; | |
resolver 10.0.0.53; | |
server time.example.com:37 resolve; | |
} | |
server { | |
listen 37; | |
proxy_pass backend; |
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
apiVersion: k8s.nginx.org/v1 | |
kind: VirtualServer | |
metadata: | |
name: app-ingress | |
spec: | |
host: app.example.com | |
tls: | |
secret: app-secret-ecc | |
upstreams: | |
- name: web-server-payload |
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
{ | |
"action": { | |
"share": "/www/data/static/", | |
"chroot": "/www/data/" | |
} | |
} |
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
load_module modules/ngx_http_geoip2_module.so; |
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
server { | |
listen 8080; | |
location /api { # Enable JSON status API | |
write=on; | |
} | |
location = /dashboard.html { | |
root /usr/share/nginx/html; | |
} |
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
# Builds NGINX from the QUIC+HTTP/3 development branch | |
# - Based on the official NGINX docker image, including all modules built by default | |
# - OpenSSL replaced with LibreSSL to support QUIC's TLS requirements (statically linked) | |
# | |
# docker build --no-cache -t nginx:quic . | |
# docker run -d -p 443:443 -p 443:443/udp nginx:quic | |
# | |
# Note that a suitable configuration file and TLS certificates are required for testing! | |
# See <https://quic.nginx.org/readme.html> for more info |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: bash | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: bash | |
template: |