HTTPS
This commit is contained in:
@ -7,6 +7,7 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${APP_PORT}:80"
|
||||
- "${APP_SSL_PORT}:443"
|
||||
volumes:
|
||||
- ${APP_PATH:-.}/:/code
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
|
26
nginx.conf
26
nginx.conf
@ -21,3 +21,29 @@ server {
|
||||
fastcgi_pass web:9000;
|
||||
}
|
||||
}
|
||||
server {
|
||||
listen 443;
|
||||
listen [::]:443;
|
||||
|
||||
index index.php;
|
||||
|
||||
error_log /logs/error.log;
|
||||
access_log /logs/access.log;
|
||||
|
||||
root /code/public;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri $uri/ =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_read_timeout 3600;
|
||||
fastcgi_pass web:9000;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user