Comments (4)
Raju,
You need to have a fully working nginx install on your host.
If yes, then your "/etc/nginx" should have the "nginx.conf" file and "conf.d" directory.
Then when you launch "nginx-ui" docker container, you need to add your local /etc/nginx
as a volume inside the "nginx-ui" docker container mapped to /etc/nginx
such that the Python Flask application can read it's configuration and display the website.
- Make sure that you local nginx is setup properly and your
/etc/nginx
directory is populated. - When you launch nginx-ui container mount your local nginx config directory into the container. use "-v /etc/nginx:/etc/nginx"
Other option
Launch 2 containers "nginx-ui" and "nginx" using "docker-compose.yml" and the use "/etc/nginx" as a shared volume on both "nginx-ui" and "nginx".
from nginx-ui.
now i got it, as i'm new to docker so a bit confusing with all those options and stuffs but now i can confirm its working on localhost:7777
I'll go head and close the issue.
from nginx-ui.
What @debuggerboy mentioned, using the correct volumemapping works:
docker run -d --restart=always --name nginxui -v /etc/nginx:/etc/nginx -p 7777:8080 schenkd/nginx-ui:latest
The docs are "wrong".
from nginx-ui.
Adding to this issue - When used with LinuxServer.io image of swag.
Map the swag/nginx directory to /etc/nginx of docker image of nginx-ui.
you will get the same error reported htere, because conf.d directory is not available.
Workaround:
create a symbolic link conf.d directory linked to proxy-confs directory. that
in swag/nginx directory execute: ln -s proxy-confs conf.d
restart container for nginx-ui. now this error would be resolved.
from nginx-ui.
Related Issues (20)
- Possible arbitrary file access though Path Traversal vulnerability in some situations HOT 3
- Getting error when trying to run HOT 3
- Support openresty HOT 1
- [Suggestion] Implement nginxconfig.io HOT 2
- flask auth? HOT 4
- Getting an error on a fresh install HOT 2
- My nginx is installed with docker,when I run this app,I got a ERROR HOT 1
- Mobile support? HOT 1
- Reload nginx when domain status is set to enabled HOT 2
- Can code be merged to implement nginx operation management? HOT 2
- traefik integration with prefixpath /YOUR_PREFIX_PATH/nginx-ui
- Enhancement Request: .conf file verification button
- Generated domain conf template is invalid - missing server HOT 1
- Is there a binary release available? I need to integrate it with
- Docker security HOT 1
- Support for arm64? HOT 1
- Is this maintained?
- Support Running Behind Reverse Proxy ? http://xxx.xxx.xxx.xxx/nginx-ui ? HOT 2
- 全新安装报错 open /etc/nginx-ui/app.ini: no such file or directory
- Software design has flaws. Why do I have to provide the /etc/nginx/ directory to this program?
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 nginx-ui.