01-23-2023, 09:58 PM
@Tim Curtis
Ah, you crafty devils...the old proxy trick. Somehow I knew my "got it" couldn't be that easy
Don't mind the hostname; I didn't get around to updating it to match the updated version on this test host.
Regards,
Kent
Ah, you crafty devils...the old proxy trick. Somehow I knew my "got it" couldn't be that easy

Don't mind the hostname; I didn't get around to updating it to match the updated version on this test host.
Code:
pi@m824p4b:~ $ ls -l /etc/nginx/sites-enabled/
total 0
lrwxrwxrwx 1 root root 42 Jan 23 06:32 moode-http.conf -> /etc/nginx/sites-available/moode-http.conf
Code:
pi@m824p4b:~ $ cat /etc/nginx/sites-available/moode-http.conf
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or Wordpress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
# server_name _;
include moode-locations.conf;
}
Code:
pi@m824p4b:~ $ cat /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
client_max_body_size 75M;
##
# SSL Settings
##
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
#ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log off;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
#include /etc/nginx/conf.d/*.conf;
#include /etc/nginx/sites-enabled/*;
##
# moOde UI server
##
server {
listen 80;
location / {
root /var/www;
index index.html index.php;
try_files $uri $uri/ /coverart.php;
}
location /imagesw/ {
root /var/local/www;
}
# php-fpm
location ~ \.php$ {
root /var/www;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
}
}
Code:
pi@m824p4b:~ $ cat /etc/nginx/moode-locations.conf
##
# This file contains the standard web moode-ui locations
##
include proxy.conf;
location / {
root /var/www;
index index.html index.php;
try_files $uri $uri/ /coverart.php;
}
location /imagesw/ {
root /var/local/www;
}
# php-fpm
location ~ \.php$ {
root /var/www;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
# make camillagui available from the same webserver
location /camilladsp/ {
proxy_pass http://127.0.0.1:15000/;
}
# for camillagui also the api should be redirected
location /api/ {
proxy_pass http://127.0.0.1:15000/api/;
}
Kent