Initial commit
This commit is contained in:
78
nginx-reverse-proxy/default.conf
Normal file
78
nginx-reverse-proxy/default.conf
Normal file
@@ -0,0 +1,78 @@
|
||||
# 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/access.log combined;
|
||||
error_log /var/log/nginx/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;
|
||||
}
|
||||
|
||||
# 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;
|
||||
}
|
||||
Reference in New Issue
Block a user