Compare commits
No commits in common. "e3e75e7b0bfca110cd305c2198c52ce27b2a1a10" and "ca6f3f6ed5fe79b1236054d421ec8695cebea65d" have entirely different histories.
e3e75e7b0b
...
ca6f3f6ed5
@ -1,5 +0,0 @@
|
||||
Dockerfile
|
||||
docker-compose.yml
|
||||
.gitignore
|
||||
README.md
|
||||
config.toml
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
files/
|
@ -1,8 +0,0 @@
|
||||
FROM golang:1.21-alpine
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY *.go ./
|
||||
RUN go build -o hardfiles main.go
|
||||
RUN mkdir files
|
||||
CMD ["./hardfiles"]
|
14
README.md
14
README.md
@ -17,12 +17,9 @@ HardFiles is built on the principle of flexibility. If you choose to run your ow
|
||||
## Deployment Guide for HardFiles
|
||||
|
||||
#### 1. Configuration:
|
||||
Start by adjusting the necessary configuration variables in `config.toml`.
|
||||
|
||||
#### 2. Build and Run
|
||||
|
||||
##### Bare Metal:
|
||||
Start by adjusting the necessary configuration variables in `main.go`.
|
||||
|
||||
#### 2. Build and Run:
|
||||
Execute the following commands to build and initiate HardFiles:
|
||||
```
|
||||
go build -o hardfiles main.go
|
||||
@ -30,13 +27,6 @@ mkdir files
|
||||
./hardfiles
|
||||
```
|
||||
|
||||
##### Docker Compose:
|
||||
|
||||
Execute the following commands to build and initiate HardFiles in Docker:
|
||||
```
|
||||
docker compose up -d --build
|
||||
```
|
||||
|
||||
#### 3. Default Port:
|
||||
By default, HardFiles listens on port `5000`. For production environments, it's recommended to use a robust web server like Nginx or Apache to proxy traffic to this port.
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
services:
|
||||
hardfiles:
|
||||
container_name: hardfiles
|
||||
build: .
|
||||
volumes:
|
||||
- "$PWD/files:/app/files"
|
||||
- "$PWD/www:/app/www"
|
||||
- "$PWD/config.toml:/app/config.toml"
|
||||
ports:
|
||||
- "5000:5000"
|
Loading…
Reference in New Issue
Block a user