Skip to content

Instantly share code, notes, and snippets.

@GamePlayer-8
GamePlayer-8 / nginx_webmin.conf
Created July 19, 2023 07:36
nginx_webmin.conf
set $webminip <WEBMIN IP>;
set $webminport <WEBMIN PORT>;
set $netdataport <NETDATA PORT>; # optional
location /webmin/ {
proxy_redirect https://$host:$webminport/ https://$host/webmin/;
proxy_pass https://$webminip:$webminport/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Accept-Encoding "";
@GamePlayer-8
GamePlayer-8 / nginx_netdata.conf
Created July 19, 2023 07:39
nginx_netdata.conf
set $netdataip <NETDATA IP>;
set $netdataport <NETDATA PORT>;
location = /netdata {
return 301 /netdata/;
}
location ~ /netdata/(?<ndpath>.*) {
proxy_redirect off;
proxy_set_header Host $host;
@GamePlayer-8
GamePlayer-8 / nginx_i2pd.conf
Created July 19, 2023 07:43
nginx_i2pd.conf
set $i2pdip <I2Pd IP>;
set $i2pdport <I2Pd PORT>;
location /i2pd/ {
proxy_pass http://$i2pdip:$i2pdport/;
proxy_set_header Host 127.0.0.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Accept-Encoding "";
proxy_redirect / /i2pd/;
sub_filter 'http://' 'https://';
@GamePlayer-8
GamePlayer-8 / nginx_stub.conf
Created July 19, 2023 07:44
nginx_stub.conf
location /nginx {
stub_status;
}
@GamePlayer-8
GamePlayer-8 / nginx_default_ssl.conf
Created July 19, 2023 07:47
nginx_default_ssl.conf
listen 443 ssl;
listen [::]:443 ssl;
limit_conn conn_limit_per_ip 40;
limit_req zone=req_limit_per_ip burst=40 nodelay;
proxy_hide_header X-Frame-Options;
include nginx_letsencrypt.conf;
@GamePlayer-8
GamePlayer-8 / nginx_letsencrypt.conf
Created July 19, 2023 07:52
nginx_letsencrypt.conf
resolver 127.0.0.1 valid=300s;
resolver_timeout 5s;
ssl_certificate /etc/letsencrypt/live/$host/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/$host/privkey.pem;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
ssl_stapling off;
ssl_stapling_verify off;
include /etc/letsencrypt/options-ssl-nginx.conf;
@GamePlayer-8
GamePlayer-8 / nginx_blocklist.conf
Created July 19, 2023 07:54
nginx_blocklist.conf
set $returnhost <HOST, WHERE 403 ERROR IS SHOWN>;
# case sensitive matching
if ($http_user_agent ~ (Antivirx|Arian)) {
return 301 https://$returnhost;
}
# case insensitive matching
if ($http_user_agent ~* (malicious)) {
return 301 https://$returnhost;
@GamePlayer-8
GamePlayer-8 / pipewire.conf
Created July 19, 2023 07:56
pipewire.conf
# Daemon config file for PipeWire version "0.3.70" #
#
# Copy and edit this file in /etc/pipewire for system-wide changes
# or in ~/.config/pipewire for local changes.
#
# It is also possible to place a file with an updated section in
# /etc/pipewire/pipewire.conf.d/ for system-wide changes or in
# ~/.config/pipewire/pipewire.conf.d/ for local changes.
#
@GamePlayer-8
GamePlayer-8 / wireplumber.conf
Created July 19, 2023 07:57
wireplumber.conf
# WirePlumber daemon context configuration #
context.properties = {
## Properties to configure the PipeWire context and some modules
application.name = WirePlumber
log.level = 2
wireplumber.script-engine = lua-scripting
wireplumber.export-core = true
@GamePlayer-8
GamePlayer-8 / pipewire-pulse.conf
Created July 19, 2023 07:57
pipewire-pulse.conf
# PulseAudio config file for PipeWire version "0.3.70" #
#
# Copy and edit this file in /etc/pipewire for system-wide changes
# or in ~/.config/pipewire for local changes.
#
# It is also possible to place a file with an updated section in
# /etc/pipewire/pipewire-pulse.conf.d/ for system-wide changes or in
# ~/.config/pipewire/pipewire-pulse.conf.d/ for local changes.
#