45 lines
809 B
Plaintext
45 lines
809 B
Plaintext
# Inferencium - xa000-1
|
|
# Nginx - Configuration - Inferencium - Internal - YouTube
|
|
# Version: 1.0.0-alpha.1
|
|
|
|
# Copyright 2024 Jake Winters
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
# Redirect (unencrypted)
|
|
server {
|
|
|
|
## General
|
|
server_name yt.int.inferencium.net;
|
|
listen 80;
|
|
# listen [::]:80;
|
|
|
|
## Location
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
# Server (TLS)
|
|
server {
|
|
|
|
## General
|
|
server_name yt.int.inferencium.net;
|
|
listen 443 ssl;
|
|
# listen [::]:443 ssl;
|
|
http2 on;
|
|
|
|
## Location
|
|
location / {
|
|
proxy_pass http://localhost:8080;
|
|
}
|
|
|
|
## Security
|
|
ssl_certificate /etc/ssl/nginx/inferencium-int/fullchain.pem;
|
|
ssl_certificate_key /etc/ssl/nginx/inferencium-int/privkey.pem;
|
|
include include/header-security.conf;
|
|
|
|
}
|