114 lines
2.3 KiB
Plaintext
114 lines
2.3 KiB
Plaintext
# blog config
|
|
server {
|
|
listen 80;
|
|
listen 443 ssl http2;
|
|
server_name colindiem.com;
|
|
|
|
# Path for SSL config/key/certificate
|
|
ssl_certificate /etc/ssl/certs/nginx/blog.crt;
|
|
ssl_certificate_key /etc/ssl/certs/nginx/blog.key;
|
|
include /etc/nginx/includes/ssl.conf;
|
|
|
|
location / {
|
|
include /etc/nginx/includes/proxy.conf;
|
|
proxy_pass http://blog;
|
|
}
|
|
|
|
access_log /var/log/nginx/blog-access.log combined;
|
|
error_log /var/log/nginx/blog-error.log error;
|
|
}
|
|
|
|
# Bitwarden cofig
|
|
server {
|
|
listen 80;
|
|
listen 443 ssl http2;
|
|
server_name bitwarden.colindiem.com;
|
|
|
|
ssl_certificate /etc/ssl/certs/nginx/bitwarden.crt;
|
|
ssl_certificate_key /etc/ssl/certs/nginx/bitwarden.key;
|
|
include /etc/nginx/includes/ssl.conf;
|
|
|
|
location / {
|
|
include /etc/nginx/includes/proxy.conf;
|
|
proxy_pass http://bitwarden;
|
|
}
|
|
|
|
access_log /var/log/nginx/bitwarden-access.log combined;
|
|
error_log /var/log/nginx/bitwarden-error.log error;
|
|
}
|
|
|
|
# Gitea config
|
|
server {
|
|
listen 80;
|
|
listen 3000;
|
|
listen 22;
|
|
server_name git.colindiem.com;
|
|
client_max_body_size 0;
|
|
|
|
location / {
|
|
include /etc/nginx/includes/proxy.conf;
|
|
proxy_pass http://gitea:3000;
|
|
}
|
|
|
|
access_log /var/log/nginx/gitea-access.log combined;
|
|
error_log /var/log/nginx/gitea-error.log error;
|
|
}
|
|
|
|
# Motioneye config
|
|
server {
|
|
listen 80;
|
|
server_name eye.colindiem.com;
|
|
|
|
location / {
|
|
include /etc/nginx/includes/proxy.conf;
|
|
proxy_pass http://motioneye:8765;
|
|
}
|
|
|
|
access_log /var/log/nginx/motioneye-access.log combined;
|
|
error_log /var/log/nginx/motioneye-error.log error;
|
|
}
|
|
|
|
# Nextcloud config
|
|
server {
|
|
listen 80;
|
|
listen 443 http2 ssl;
|
|
server_name cloud.colindiem.com;
|
|
ssl on;
|
|
|
|
# Path for SSL config/key/certificate
|
|
ssl_certificate /etc/ssl/certs/nginx/nextcloud.crt;
|
|
ssl_certificate_key /etc/ssl/certs/nginx/nextcloud.key;
|
|
|
|
location / {
|
|
include /etc/nginx/includes/proxy.conf;
|
|
proxy_set_header X-Forwarded-Host http://cloud.colindiem.com:80;
|
|
proxy_pass https://192.168.1.202:9443;
|
|
}
|
|
|
|
access_log /var/log/nginx/nextcloud-access.log combined;
|
|
error_log /var/log/nginx/nextcloud-error.log error;
|
|
}
|
|
|
|
# Default
|
|
server {
|
|
listen 80 default_server;
|
|
|
|
server_name _;
|
|
root /var/www/html;
|
|
|
|
charset UTF-8;
|
|
|
|
error_page 404 /backend-not-found.html;
|
|
location = /backend-not-found.html {
|
|
allow all;
|
|
}
|
|
|
|
location / {
|
|
return 404;
|
|
}
|
|
|
|
access_log off;
|
|
log_not_found off;
|
|
error_log /var/log/nginx/error.log error;
|
|
}
|