Comments (8)
bump - I want this too
from proxmox-scripts.
First method
You need to create /app/config/default.json
file and put here next enviropments:
cfg: {
database: {
'engine': 'mysql',
'host': 'Host',
'port': 'PORT',
'user': 'envMysqlUser',
'password': 'PASSWORD',
'name': 'dbName'
}
}
Then you must to rebuild frontend with yarn or npm (up to you) and reload nginx or reboot container.
Second Method
Also, you can edit /app/config/production.json
and replace old vars to this vars.
Then you must to rebuild frontend with yarn or npm (up to you) and reload nginx or reboot container.
Third Method
Also, you can edit /app/lib/config.js
and update following lines:
const envMysqlHost = process.env.DB_MYSQL_HOST || 'HERE HOST';
const envMysqlUser = process.env.DB_MYSQL_USER || 'HERE USER DB';
const envMysqlName = process.env.DB_MYSQL_NAME || 'HERE NAME DB';
if (envMysqlHost && envMysqlUser && envMysqlName) {
// we have enough mysql creds to go with mysql
logger.info('Using MySQL configuration');
instance = {
database: {
engine: 'mysql',
host: envMysqlHost,
port: process.env.DB_MYSQL_PORT || HERE PORT,
user: envMysqlUser,
password: process.env.DB_MYSQL_PASSWORD || 'HERE PASS',
name: envMysqlName,
},
Then you must to rebuild frontend with yarn or npm (up to you) and reload nginx or reboot container.
Fourth method
You can use terminal command:
bash
export NODE_ENV='{"config": {"host":"fqdn/ip db", "port":"portdb", "user":"userdb", "name":"namedb", "password":"passdb",}}'
Then you must to rebuild frontend with yarn or npm (up to you) and reload nginx or reboot container.
P.S,
sorry for nekroposting, but mb this helps somebody.
Closed?
from proxmox-scripts.
@YakkaDev Thanks for the detailed answer, I will look at incorporating this into the install script.
from proxmox-scripts.
None of these methods appear to work.
from proxmox-scripts.
Hi @YakkaDev ,
thanks for your great answer! I'm pretty sure all those methods could work.
But I have to be honest, I have no clue how to rebuild frontend with yarn or npm:D
Could you or anyone give me a hint?
from proxmox-scripts.
Hello @YakkaDev ,
I tried method 2:
Firstly, I retrieved the SQLite3 database located at /data/database.sqlite
then converted it to .sql format and added it to my cluster.
Next, I modified the /app/config/production.json
file
I restarted the service, restarted the container. But no change, NPM doesn't pick up the changes from this file. Additionally, there's a README.md in the /app/config/
directory that states the files in this folder are not considered if we are not in development mode.
I'm looking for another solution...
from proxmox-scripts.
I have now tested method 3. This method works for connecting to an external database.
Unfortunately, the conversion I made from SQLite3 to SQL did not work well, and I encountered a lot of errors. I tried to find the nominal structure in the source GitHub repository: https://github.com/NginxProxyManager/nginx-proxy-manager, but I couldn't find a .sql file to install a proper base for MySQL / MariaDB. Do you know if this file exists?
Thank you
from proxmox-scripts.
So,
I installed the docker version with MariaDB of NPM by opening port 3306 on the database part. I made a dump of the initial database to create a template. I changed the engine to INNODB because I am on a Galera Cluster (doesn't work with ARIA).
And I imported this template into my cluster.
Now it works. 😅
from proxmox-scripts.
Related Issues (20)
- gpg: keyserver receive failed: Server indicated a failure HOT 1
- Issues with installing on Ubuntu HOT 2
- Failing to install on Proxmox 8.0.3: Frontend not Built HOT 8
- os fetch error HOT 2
- Backend not initialized
- Is there any way to remove all components that the script has installed.
- Way to uninstall HOT 1
- Update 2.10.4 to 2.11.0 HOT 9
- NPMplus app support
- request to make the script verbose
- Installation fails at openresty // pkg_update HOT 5
- Rust Not Installed HOT 2
- Services Not Started (svc_add) HOT 2
- Update link in tutorial
- Use of Github Actions to Test Matrix Builds
- Ends at missing python HOT 7
- Alpine - SSL Enviroment Variable - Using 'lxc-attach' instead of 'pct exec' HOT 2
- Run the script to update -> ERROR HOT 3
- Dark Theme
- ✘ Frontend not Built (Proxmox Version: 8.2.2 - Ubuntu Version: 22.04) HOT 4
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 proxmox-scripts.