https://github.com/polarspetroll/localcloud
web app interface for local NAS access
https://github.com/polarspetroll/localcloud
cloud golang mysql nas redis webapp
Last synced: about 2 months ago
JSON representation
web app interface for local NAS access
- Host: GitHub
- URL: https://github.com/polarspetroll/localcloud
- Owner: polarspetroll
- Created: 2021-05-07T18:01:36.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-03T16:23:29.000Z (over 4 years ago)
- Last Synced: 2025-01-17T10:30:47.826Z (over 1 year ago)
- Topics: cloud, golang, mysql, nas, redis, webapp
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local NAS
Simple NAS web app for personal usage with authentication and authorization
### Environment Variables
```
############Mysql#################
DBPWD -> Database Password
DBUSR -> Database Username
DBADDR -> Database Address
DBNAME -> Database Name
############Redis#################
REDISPWD -> redis password
REDISADDR -> redis address
############General###############
PORT -> Listen Port
##################################
```
### Constant Variable
- ```rootdir``` -> Root directory for uploaded files
- /upload/upload.go at line 16
#### Database
- Credentials : **Mysql**
- Session : **Redis**
**tables** :
```sql
CREATE TABLE cloud (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(40) UNIQUE NOT NULL,
password VARCHAR(32) NOT NULL
);
INSERT INTO cloud(username, password) VALUES('your username', MD5('your password'));
```