feat/docker-compose-update (#18)
Co-authored-by: jon brookes <marshyon@gmail.com> Reviewed-on: https://codeberg.org/headshed/share-lt/pulls/18
This commit is contained in:
parent
fd43495e2d
commit
1a22fd156d
70 changed files with 1068 additions and 745 deletions
31
nginx/conf.d/app.conf
Normal file
31
nginx/conf.d/app.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
server {
|
||||
listen 8889;
|
||||
# Redirect all HTTP requests to HTTPS
|
||||
# return 301 https://$host$request_uri;
|
||||
|
||||
index index.php index.html;
|
||||
# error_log /var/log/nginx/error.log;
|
||||
error_log /dev/stderr debug;
|
||||
# access_log /var/log/nginx/access.log;
|
||||
access_log /dev/stdout;
|
||||
root /var/www/public;
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param HTTPS on;
|
||||
fastcgi_param HTTP_X_FORWARDED_PROTO https;
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
gzip_static on;
|
||||
}
|
||||
location /storage/ {
|
||||
alias /var/www/storage/app/public/;
|
||||
autoindex on;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue