nginx

Getting Nginx logs into Victoria-Logs – v2

VictoriaLogs is feature rich, which means at this point, I know very little about it. However, this post has been deprecated by a newer post which covers more material. I do know that the original syslog-ng configuration I supplied in Getting Nginx logs into Victoria-Logs is now less complicated. With the help of duck.ai, I managed to reduce it. Now it’s sending the json without running it through a parser. In this post: […]

Getting Nginx logs into Victoria-Logs – v2 Read More »

VictoriaLogs: Adding syslog-ng to a host and ingesting nginx log from jails

This post is more self-documentation than anything else. The links in this post might be useful than the content. However, this post has been deprecated by a newer post which covers more material. Today I’ll start pulling production FreshPorts nginx logs into VictoriaLogs. Over the past few days, I’ve configured a proof-of-concept and now I’m ready to try this in prod. In this post: FreeBSD 15.0 (installed on the host aws-1) nginx-1.30.2_2,3 (running

VictoriaLogs: Adding syslog-ng to a host and ingesting nginx log from jails Read More »

Adding an nginx proxy in front of Victoria-Labs

Victoria-Logs has an built-in UI – and it’s easier for me to access via my web browser if I put Nginx in front of it. In this post: FreeBSD 15.0 victoria-logs-1.50.0_2 nginx-1.30.2_2,3/li> Victoria Logs config This is the main configuration, as found in /etc/rc.conf: Those \ and multiple lines, yea, don’t do that, put it all on one line. I’ve done that above to make it easier for you to read. Nginx This

Adding an nginx proxy in front of Victoria-Labs Read More »

maintenance script changes

After I wrote the script to put up a maintenance page for my websites, I came up with two more things to display on the page: Timestamp for start of maintenance Reason for maintenance In this post: FreeBSD 15.0 The new script The new script is invoked like this: The original script is in my previous post. The new script is here: The results The resulting webpage looks something like this (what you

maintenance script changes Read More »

Script to generate that maintenance.html file for taking my websites into maintenance mode

In a recent blog post, I showed you how I was taking my websites into maintenance mode. Shortly afterwards, I wrote about how using $server_name can have odd consequences. Today, I’m writing about the script I just created which will create those maintenance.html files. In this post: FreeBSD 15.0 nginx 1.28.2 bourne shell The script This is the script: Yes, the rm is not necessary, since the file has already been moved. To

Script to generate that maintenance.html file for taking my websites into maintenance mode Read More »

Using variable names in nginx declarations has a price: e.g. ssl_certificate /usr/local/etc/ssl/${server_name}.fullchain.cer;

I recently implemented a fun (to me) and easy solution for taking my web proxy websites offline, either one-by-one, or all-at-once. Today’s post talks about some of the repercussions which followed one-new-thing I tried. In this post: FreeBSD 15.0 nginx 1.28.2 I jump between testing the test host and stage host; both had similar issues. The relevant changes This is the type of change I started to do. Instead of putting the hostname

Using variable names in nginx declarations has a price: e.g. ssl_certificate /usr/local/etc/ssl/${server_name}.fullchain.cer; Read More »

Taking your nginx website offline for maintenance? I have an idea.

From time to time, I need to take an nginx webserver or website offline for whatever reason. I might be migrating the database behind the website, the hardware might be powered off for work, etc. In my case, these points might help you follow along with what I’m doing: FreeBSD 15 nginx-1.28.2 there is an nginx proxy in front of the website – this nginx instance has no real content; it uses proxy_pass

Taking your nginx website offline for maintenance? I have an idea. Read More »

Converting pgeu-system schedule to HTML

I’ve been using pgeu-system for conference organization since 2000. Once feature I wish it had: export the schedule to HTML. The primary reason for that is to decouple the schedule from the software. That way, the schedules are available on the website when the software is not running. That is, instead of pulling the page from the database, you’re pulling the page from static HTML files. Such a feature is useful should you

Converting pgeu-system schedule to HTML Read More »

poudriere: when renaming sets, also rename *-make.conf files etc

Last last night, after renaming some buildlists, which were actually setnames, for poudriere, I realized that files in /usr/local/etc/poudriere.d also needed to be renamed. In this post: poudriere 3.3.7 nginx 1.20.1_2,2 Both running on FreeBSD 13.0-RELEASE-p4 These are my renamed files: [dan@pkg01:/usr/local/etc/poudriere.d]: $ ls *primary* primary-make.conf primary-poudriere.conf primaryi386-make.conf primaryi386-poudriere.conf The output of svn status illustrates the changes I made: [dan@pkg01:/usr/local/etc/poudriere.d]: $ svn st D master-list-i386-make.conf > moved to primaryi386-make.conf D master-list-i386-poudriere.conf > moved

poudriere: when renaming sets, also rename *-make.conf files etc Read More »

Accessing a Dell iDRAC 7 via Nginx reverse proxy

HEADS UP: this is still under review. Until this notice is removed, I recommend not using this. I have a Dell R720 at an ISP. The iDRAC connection is filtered, by the ISP, and is accessible only from a small number of IP addresses. Sure, this talks about a web proxy. It works. So does the ssh forwarding shown at the bottom of this post. NOTE: I should start monitoring that IP addr

Accessing a Dell iDRAC 7 via Nginx reverse proxy Read More »

Scroll to Top