dirtsimple / php-server Goto Github PK
View Code? Open in Web Editor NEWalpine + nginx + php-fpm + dockerize = easy PHP app server goodness
License: GNU General Public License v3.0
alpine + nginx + php-fpm + dockerize = easy PHP app server goodness
License: GNU General Public License v3.0
Basic idea: Use sSMTP as a transport, by making the ssmtp
package part of the default image, and including the necessary PHP config if SSMTP_MAILHUB
is set. There'd be a template in tpl/etc/ssmtp/ssmtp.conf
to configure (roughly):
Mailhub={{SSMTP_MAILHUB}}
FromLineOverride={{SSMTP_FROM_LINE_OVERRIDE}}
UseTLS={{SSMTP_USE_TLS}}
UseSTARTTLS={{SSMTP_USE_STARTTLS}}
AuthUser={{SSMTP_USER}}
AuthPass={{SSMTP_PASS}}
AuthMethod={{SSMTP_AUTH_METHOD}}
There might need to be a Hostname
setting, too, and defaults need to be decided on. Plus many of the above need if's to only include those lines if the variable has a value. There's also a few other options, like RewriteDomain
and root
. (A related issue is logging: an rsyslog
install would be needed, configured to send stuff to stdout or stderr. That's a whole other feature by itself.)
Currently, you get a full access log for both static files and PHP. It should be possible to configure this better with environment variables, maybe PHP_ACCESS_LOG
and STATIC_ACCESS_LOG
, that set their respective access log
values to /dev/stdout
and off
by default. (More complex values could also be set, including if
and format selectors.)
(Probably a PHP_ERROR_LOG
setting would also be useful, to set the ini value.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.