You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All notable changes to this project will be documented in this file.
3
+
4
+
## [4.2.1] - 2022-06-17
5
+
6
+
-`The new StartScript allows you to update Codeigniter 4`: by reading the file */vendor/codeigniter4/framework/system/CodeIgniter.php*, the script checks if a composer update is required to update the application. **Warning: Always backup before using a new image!**
7
+
-`Added the support for environment variables`: environment variables can be used to generate the Codeigniter .env file. The file will be generated at container startup only if REGEN_ENV_FILE = 1.
8
+
-`New PHP images`: they are images designed for application development, complete with many pre-installed php and apache modules.
9
+
-`The new images will have a new numbering`: the numbering will contain both the codeigniter version and the php version
This repository provides you a development environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires Docker and Docker Compose.
7
9
8
10
Basic example to create your container (tested on Ubuntu 20.04 - Docker version 20.10.11, build dea9396 - docker-compose version 1.25.0 ):
9
11
10
12
**NOTE: This package is under early development and is not ready for prime-time.**
11
13
12
-
## Build Image
13
-
14
-
create this structure:
15
-
```
16
-
codeigniter/
17
-
- conf/apache.conf
18
-
- Dockerfile
19
-
- startScript.sh
20
-
```
14
+
**The old version is still available in the branch called "old"**
-`APP_BASE_URL` - URL to your CodeIgniter root. Typically this will be your base URL, WITH a trailing slash [`http://localhots/`]
67
+
-`APP_FORCE_GLOBAl_SECURE_REQUESTS` - If true, this will force every request made to this application to be made via a secure connection (HTTPS) [`true`, `false`]
-`CONTENT_SECURE_POLICY_IMAGE_SRC` - Defines the origins from which images can be loaded [`self`]
106
+
-`CONTENT_SECURE_POLICY_BASE_URI` - Restricts the URLs that can appear in a page's `<base>` element [`null`]
107
+
-`CONTENT_SECURE_POLICY_CHILD_SRC` - Lists the URLs for workers and embedded frame contents [`null`]
108
+
-`CONTENT_SECURE_POLICY_CONNECT_SRC` - Limits the origins that you can connect to (via XHR, WebSockets, and EventSource)[`self`]
109
+
-`CONTENT_SECURE_POLICY_FONT_SRC` - Specifies the origins that can serve web fonts [`null`]
110
+
-`CONTENT_SECURE_POLICY_FORM_ACTION` - Lists valid endpoints for submission from `<form>` tags [`null`]
111
+
-`CONTENT_SECURE_POLICY_FRAME_ANCESTORS` - Specifies the sources that can embed the current page [`null`]
112
+
-`CONTENT_SECURE_POLICY_RFAME_SRC` - The frame-src directive restricts the URLs which may be loaded into nested browsing contexts [`null`]
113
+
-`CONTENT_SECURE_POLICY_MEDIA_SRC` - Restricts the origins allowed to deliver video and audio [`null`]
114
+
-`CONTENT_SECURE_POLICY_OBJECT_SRC` - Allows control over Flash and other plugins [`null`]
115
+
-`CONTENT_SECURE_POLICY_PLUGIN_TYPES` - Limits the kinds of plugins a page may invoke [`null`]
116
+
-`CONTENT_SECURE_POLICY_REPORT_URI` - Specifies a URL where a browser will send reports when a content security policy is violated [`null`]
117
+
-`CONTENT_SECURE_POLICY_SANDBOX` - List of actions allowed [`true`, `false`]
118
+
-`CONTENT_SECURE_POLICY_UPGRADE_INSECURE_REQUESTS` - Instructs user agents to rewrite URL schemes, changing HTTP to HTTPS. This directive is for websites with large numbers of old URLs that need to be rewritten[`true`, `false`]
119
+
120
+
## Cookie Configuration
121
+
-`COOKIE_PREFIX` - Set a cookie name prefix if you need to avoid collisions [``]
122
+
-`COOKIE_EXPIRES` - Default expires timestamp for cookies [`0`]
123
+
-`COOKIE_PATH` - Typically will be a forward slash [`/`]
124
+
-`COOKIE_DOMAIN` - Set to `.your-domain.com` for site-wide cookies [``]
125
+
-`COOKIE_SECURE` - Cookie will only be set if a secure HTTPS connection exists [`true`, `false`]
126
+
-`COOKIE_HTTP_OLNY` - Cookie will only be accessible via HTTP(S) (no JavaScript) [`true`, `false`]
0 commit comments