This is my (I just got it somewhere)
www/nginx configuration for
ports-mgmt/poudriere:
Code:
server {
listen 80;
server_name YOUR;
root /usr/local/share/poudriere/html;
# Allow caching static resources
location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|woff|css|js|html)$ {
add_header Cache-Control "public";
expires 2d;
}
location /data {
alias /usr/local/poudriere/data/logs/bulk;
# Allow caching dynamic files but ensure they get rechecked
location ~* ^.+\.(log|txz|tbz|bz2|gz)$ {
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
# Don't log json requests as they come in frequently and ensure
# caching works as expected
location ~* ^.+\.(json)$ {
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
access_log off;
log_not_found off;
}
# Allow indexing only in log dirs
location ~ /data/?.*/(logs|latest-per-pkg)/ {
autoindex on;
}
break;
}
location /packages {
root /usr/local/poudriere/data;
autoindex on;
}
}
Oh, I'm good with nginx... I have it running on a E4200 router with OpenWRT... It's running that, and Bind, (and ftpd, and sshd) and I wanted to put a mail server on it, too, but I ran out of space, and never got to mount a USB drive to it...
It was kinda neat because I had set up forwarding on it so it would connect to my Plex server web interface, and I could play videos on my cell phone over LTE without having to pay for the app... I had set it up as plex.fu-kt.tk instead of going for my IP and port... it was neat.
I'm fairly experienced... It's just building ports like this is frustrating, especially since I managed to build everything so far, and all I encountered were one or two loops and ports with vulnerabilities... The rest just built like a charm, and now I'm trying to build a single thing, something you'd think is well maintained on top of that, not some obscure library nobody used in a decade, but it just won't build, and I don't know how to bypass the error it's giving me... I don't know or understand the mechanism it uses to build itself, and nobody seems to be able to point me in the right direction, either...
It's just a bit frustrating... I'm in no way a newbie, though... I can comfortably configure Apache, NGINX, PHP, MySQL (all 600 lines of it), and I was even going for Sendmail many years ago already (all 1500 lines of it), but I gave up in the process)... I also have DNS running on a box, like I said, though my own domains aren't configured on it, idk why I never got around to it... I'm not really into computers anymore, tbqh, but I do know enough that Windows is sometimes frustrating because of how limiting it is, and how badly engineered it is, and I am running Firefox on KDE4 on FreeBSD right now, and my video card's spewing out 60-90 fps (I got it to 90 the other day after I ran Marble, but I don't know how to get it back to 90)... I'm just not running the Firefox I want to be running, and I'm not running the DE I want to be trying (Cinnamon)... KDE's nice, but it's too heavy, I think... I want to be able to do things with it, not just set it up some way... I'm not inspired to theme it... I just wanted to make or use a nice dark theme for me and my so to have at home, and he'd probably think FreeBSD is cool as balls instead of Winderps since we play games on the xbone, ... it's really more because i'm trying to setup a cozy place for me and my bf, and winderps isn't cozy to me... I know it might seem retarded, but FreeBSD is cozier to me than Windows, and I'm sure it is to him, too, even if he probably never used it, just because of the kind of person he is, but he's by no way a computer person, so if there's not an easy to use interface on it, he's not going to be able to enjoy the fruits i would've brought back as much, .. id just really try to get this to at least be stable with a decent de and Firefox in the very near future so we can just watch movies and browse and stuff without feeling like we're ... using windoze... like we're using something shallow that we can't really own and that's not really ours... idk how to say it, but just the electromagnetic field of the computer is different... the way it outputs graphics is different, the light it makes is different... it's all in the code, the people who wrote it, how they wrote it, why, etc... the computer's soul, so to speak, i want the computer to have a nice soul.. : x