Skip to content

Commit f4ff555

Browse files
committed
Update README.md
1 parent b6a9395 commit f4ff555

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,19 @@ This project is a basic HTTP server written in C++98.
3434

3535
## Compilation
3636

37+
### Native
38+
3739
```
3840
make [performance|debug|fsanitize]
3941
```
4042

43+
### Docker
44+
45+
This will create a mariadb docker container for the database another container which will setup wordpress, compile webserv execute it. To populate the container env credentials you can make a copy of the [.env-example](docker/.env-example) file and rename it to `.env`, make sure to change the default values according to your needs.
46+
```
47+
make -C docker up
48+
```
49+
4150
# Usage
4251
```
4352
./webserv [configuration_file] [ [-i|-h|-v|-c|-t] | [-o|-l|-a|-e ARGUMENT] ...]
@@ -70,7 +79,7 @@ You can look at the parsing debug output by setting the flag `o` to `on` and the
7079

7180
# Configuration
7281

73-
The configuration file is used to define the configuration of the webserver. It is composed of directives. A directive is composed of a name arguments and a value. The value can be a string or a block. A block is a list of directives.
82+
The configuration file is used to define the configuration of the webserver. It is composed of directives. A directive is composed of a name arguments and a value. The value can be a string or a block. A block is a list of directives. The file [webserv.conf](conf/webserv.conf) demonstrates the default configuration of the webserv executable.
7483

7584
| Config type | Options |
7685
| --- | --- |
@@ -110,7 +119,7 @@ types {
110119
type MIME_TYPE EXTENSION [EXTENSION ...];
111120
}
112121
```
113-
Types context. It contains the mime types of the server.
122+
Types context. It contains the mime types of the server. The file [mime.types](conf/mime.types) provides an extensive default configuration for this context.
114123
**Allowed tokens:** [type](#type)
115124

116125
### Server

0 commit comments

Comments
 (0)