-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.md.txt
More file actions
36 lines (27 loc) · 1.2 KB
/
README.md.txt
File metadata and controls
36 lines (27 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Instructions
### Installation
```
git clone https://github.com/WPServer/ && cd WPServer
```
### Content
* ```Dockerfile``` (Instructs Docker to build the image)
* ```srcs/``` (contains configs and some bash scripts)
* ```srcs/build.sh``` (Build, run and enter a container)
* ```srcs/script.sh``` (Inits services and modifies some config files)
* ```index.sh``` (Changes autoindex while the container is running, then restarts nginx.)
* ```host.sh``` (If you open it in your xubuntu distro, it copies the mkcert to your computer so it works)
### Run Docker image
Open a Terminal in the Dockerfile directory, then run
```
bash srcs/build.sh
```
You will be prompted to (B)uild or (C)lean. C(lean) WILL remove all your docker images, be careful with that.
If you build, you'll be prompted to confirm if you want Autoindex On (Y)es or Off (N)o
Then go to https://localhost and Procceed to the page, it will probably prompt some error about the
SSL certificate, ignore it or else:
Go to srcs and edit host.sh, edit the /home/blackman/... paths to /home/your_username/..., then run
```
bash host.sh
```
in a terminal in your xubuntu/ubuntu distro. This will copy the MKCERT to your distro, and it will show as a
https web.