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)
- FortiOS changes private key encryption every time config is downloaded
- Strip uptime from D-Link 3130 configs HOT 7
- RouterOS 7.15 - error in logs HOT 1
- zynosgs model not working with switch GS1900-8HP
- tplink model not working with Tplink SX-3008F switch
- Multiple HTTP sources not working HOT 8
- Rocky Linux PromptUndetect HOT 11
- Problem with changing ios.rb HOT 3
- Single UBNT EdgeSwitch constantly adding/removing last 50-ish lines of config HOT 1
- Slackdiff Hook Fails Due to Depreciation of files.upload API method HOT 1
- Tp-link change backup HOT 1
- Hook to gogs authentication issue HOT 4
- HTTP/Mechanize and custom port
- Problem with saving large configurations HOT 2
- docker-compose GPG encryption of router.db HOT 1
- Installing gem package oxidized-script is failing HOT 1
- Ruby Sass has reached end-of-life and should no longer be used. HOT 1
- Help with ArubaOS8 - Prompt HOT 4
- Huawei Model extend to save config HOT 3
- http input log HOT 1
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.