Last active
July 28, 2021 01:01
-
-
Save trwnh/c61e1b0988c0ae7e68ef19a2426a9cd2 to your computer and use it in GitHub Desktop.
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
/etc/hosts | |
``` | |
127.0.0.1 localhost | |
::1 localhost | |
127.0.1.1 home.localdomain home | |
192.168.1.66 home.trwnh.com home | |
192.168.1.66 cloud.trwnh.com cloud | |
192.168.1.66 jellyfin.trwnh.com jellyfin | |
192.168.1.66 rss.trwnh.com rss | |
192.168.1.66 airsonic.trwnh.com airsonic | |
192.168.1.66 komga.trwnh.com komga | |
50.116.43.33 sites.trwnh.com sites | |
192.168.1.66 mc.trwnh.com mc | |
192.168.1.66 map.mc.trwnh.com map.mc | |
``` | |
/etc/dnsmasq.conf | |
``` | |
port=53 | |
server=1.1.1.1 | |
server=8.8.8.8 | |
server=172.98.193.42 | |
server=155.138.240.237 | |
server=147.135.115.88 | |
server=147.135.113.37 | |
local=/lan/ | |
listen-address=::1,127.0.0.1,192.168.1.66 | |
expand-hosts | |
domain=trwnh.com | |
cache-size=5000 | |
``` | |
/etc/nginx/sites/home.trwnh.com.conf | |
``` | |
server { | |
server_name home.trwnh.com; | |
listen 443 ssl http2 default_server; | |
listen [::]:443 ssl http2 default_server; | |
ssl_certificate /etc/letsencrypt/live/home.trwnh.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/home.trwnh.com/privkey.pem; | |
include /etc/letsencrypt/options-ssl-nginx.conf; | |
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | |
root /srv/http/home.trwnh.com; | |
index index.html index.htm index.php; | |
access_log logs/home.trwnh.com-access.log main; | |
error_log logs/home.trwnh.com-error.log; | |
include snippets/expires.conf; | |
include snippets/htmless.conf; | |
#include snippets/error_default.conf; | |
include snippets/passwd.conf; | |
} | |
# ================================================================ http -> https | |
server { | |
server_name home.trwnh.com; | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
return 301 https://$host$request_uri; | |
} | |
# ============================================================================== | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment