github.com/wangkui503/aero@v1.0.0/docs/Configuration.md (about) 1 # Configuration 2 3 Aero allows you to configure your server via a `config.json` file in your project directory. 4 5 ## title 6 7 Your public website title. 8 9 ```json 10 { 11 "title": "My Awesome Site!" 12 } 13 ``` 14 15 Usually used in layout files and in the default web manifest. 16 17 ## domain 18 19 The website domain you are using in production. 20 21 ```json 22 { 23 "domain": "example.com" 24 } 25 ``` 26 27 This is only a guideline. The actual field value is not used anywhere in the server code. 28 29 ## ports 30 31 The ports that will be used for the HTTP and HTTPS listener. Note that both ports return nearly the same content, there are no automatic redirects. 32 33 ```json 34 { 35 "ports": { 36 "http": 4000, 37 "https": 4001 38 } 39 } 40 ``` 41 42 ## push 43 44 Specifies resources that you want to be HTTP/2 pushed on first load: 45 46 ```json 47 { 48 "push": [ 49 "/scripts.js", 50 "/image.webp" 51 ] 52 } 53 ``` 54 55 These resources will be queried by synthetic requests to your request handler and then pushed to the client. 56 57 ## manifest 58 59 Specifies [web manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) fields that should be overwritten: 60 61 ```json 62 { 63 "manifest": { 64 "short_name": "Example", 65 "theme_color": "#aabbcc" 66 } 67 } 68 ```