Comments (3)
- Set oxidized to listen only in 127.0.0.1:8888 and make nginx to redirect requests to this port.
- Redirect host port 81 to container port 888
Do something like this on /etc/nginx/nginx.conf:
server {
listen 80;
server_name host.com;
location / {
auth_basic "restrict";
auth_basic_user_file /etc/apache2/.htpasswd;
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
use apache htpasswd and save password to /etc/apache2/.htpasswd
from oxidized.
Thanks Lucas
I understand your approach which consists of using a reverse proxy like NGinx, HaProxy or Traefik on the front of Puma server.
I'm waiting to see if anyone knows how to integrate an access-list or password directly into Puma.
If it's not the case, I will follow the process you suggest.
Have a good day :-)
from oxidized.
No more information about Puma config...
So I followed Lucas's recommendation with Nginx, and it works well.
In detail, on a Debian 11 distribution, that give :
In the .config/oxidized/config file:
rest:127.0.0.1:8888
apt install nginx apache2-utils
added the following paragraph in /etc/nginx.nginx.conf:
server {
listen 80;
server_name ct-oxid.xxx;
location / {
auth_basic "restrict";
auth_basic_user_file /etc/apache2/.htpasswd;
proxy_pass http://127.0.0.1:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
htpasswd -c /etc/apache2/.htpasswd user
Bye
from oxidized.
Related Issues (20)
- Some routeros devices not working HOT 3
- I want to use SQL as my data source. SQL is configured in my configuration file, but an error occurs after startup. HOT 1
- Sonicwall with built-in wireless needs to have WPA password omitted
- Oxidized service keeps crashing - with error "Too many open files" - Debian HOT 1
- New oxidized installation on Almalinux 9.3
- Dynamic DNS doesn't re-resolve upon change
- backups through ipsec tunnel not working after upgrade deb11 -> deb12 HOT 5
- Mikrotik backup issue HOT 5
- Cisco SmallBusiness is not working HOT 6
- Opnsense OPNsense 23.10.1_2-amd64 HOT 2
- Configuration commands in the tmos.rb module without a comment return nothing.
- Using oxidized to backup Cloudflare DNS records HOT 2
- oxidized-web error :: Puma caught this error: wrong number of arguments (given 3, expected 1..2) (ArgumentError) HOT 4
- Oxidized 0.29.1 with rvm - oxidized.service: Failed with result 'exit-code' HOT 1
- Mikrotik SwOS unathorized file... HOT 3
- Monkey-patching `post` section doesn't seem to work
- Oxidized gets stuck in pushing githubrepo
- Aruba Instant Access Points always generating new configs HOT 1
- Model settings preferred over group settings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oxidized.