Upload 4 files
Browse files- entrypoint.sh +2 -1
- nginx.conf +4 -0
entrypoint.sh
CHANGED
|
@@ -15,8 +15,9 @@ chown -R root:root /var/cache/nginx /var/log/nginx
|
|
| 15 |
if [ ! -f "$PHP_WWW_DIR/ftp.php" ]; then
|
| 16 |
mkdir -p "$PHP_WWW_DIR"
|
| 17 |
cp -r /app/defaults/www/* "$PHP_WWW_DIR/"
|
| 18 |
-
chmod -R 755 "$PHP_WWW_DIR"
|
| 19 |
fi
|
|
|
|
|
|
|
| 20 |
|
| 21 |
mkdir -p "$OP_DATA_DIR"
|
| 22 |
if [ ! -d "$OP_DATA_DIR/.opencode" ]; then
|
|
|
|
| 15 |
if [ ! -f "$PHP_WWW_DIR/ftp.php" ]; then
|
| 16 |
mkdir -p "$PHP_WWW_DIR"
|
| 17 |
cp -r /app/defaults/www/* "$PHP_WWW_DIR/"
|
|
|
|
| 18 |
fi
|
| 19 |
+
chown -R www-data:www-data "$PHP_WWW_DIR"
|
| 20 |
+
chmod -R 755 "$PHP_WWW_DIR"
|
| 21 |
|
| 22 |
mkdir -p "$OP_DATA_DIR"
|
| 23 |
if [ ! -d "$OP_DATA_DIR/.opencode" ]; then
|
nginx.conf
CHANGED
|
@@ -46,8 +46,12 @@ http {
|
|
| 46 |
|
| 47 |
location @opencode {
|
| 48 |
proxy_pass http://127.0.0.1:8080;
|
|
|
|
| 49 |
proxy_set_header X-Real-IP $remote_addr;
|
| 50 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
proxy_http_version 1.1;
|
| 53 |
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
| 46 |
|
| 47 |
location @opencode {
|
| 48 |
proxy_pass http://127.0.0.1:8080;
|
| 49 |
+
proxy_set_header Host $host;
|
| 50 |
proxy_set_header X-Real-IP $remote_addr;
|
| 51 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 52 |
+
proxy_set_header X-Forwarded-Host $host;
|
| 53 |
+
proxy_set_header X-Forwarded-Port 443;
|
| 54 |
+
proxy_set_header X-Forwarded-Proto https;
|
| 55 |
|
| 56 |
proxy_http_version 1.1;
|
| 57 |
proxy_set_header Upgrade $http_upgrade;
|