Multiuser system initiated with log recording
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
# mxPIC EDA Intranet Deployment
|
||||
|
||||
## Start on the office LAN
|
||||
|
||||
1. On the host computer, open PowerShell in this repository.
|
||||
2. Set a persistent secret key:
|
||||
|
||||
```powershell
|
||||
$env:MXPIC_SECRET_KEY = "replace-with-a-long-random-secret"
|
||||
```
|
||||
|
||||
3. Start the server:
|
||||
|
||||
```powershell
|
||||
.\run_intranet_server.ps1
|
||||
```
|
||||
|
||||
The app listens on `0.0.0.0:3000`, so other users can open:
|
||||
|
||||
```text
|
||||
http://<host-computer-ip>:3000
|
||||
```
|
||||
|
||||
Find the host IP with:
|
||||
|
||||
```powershell
|
||||
ipconfig
|
||||
```
|
||||
|
||||
Use the IPv4 address on the company LAN adapter.
|
||||
|
||||
## Windows firewall
|
||||
|
||||
If coworkers cannot connect, allow inbound TCP port `3000` on the host computer.
|
||||
|
||||
## Accounts
|
||||
|
||||
Default local accounts:
|
||||
|
||||
```text
|
||||
admin / 123456
|
||||
engineer / 123456
|
||||
```
|
||||
|
||||
Change these passwords from the dashboard profile panel before regular use.
|
||||
|
||||
Each user stores projects under:
|
||||
|
||||
```text
|
||||
database/<username>/layout
|
||||
```
|
||||
|
||||
## Useful environment variables
|
||||
|
||||
```text
|
||||
MXPIC_HOST=0.0.0.0
|
||||
MXPIC_PORT=3000
|
||||
MXPIC_DEBUG=0
|
||||
MXPIC_SECRET_KEY=<long random string>
|
||||
MXPIC_COOKIE_SECURE=0
|
||||
```
|
||||
|
||||
Set `MXPIC_COOKIE_SECURE=1` only when serving through HTTPS.
|
||||
Reference in New Issue
Block a user