Coder Social home page Coder Social logo

dirtsimple / php-server Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 2.0 170 KB

alpine + nginx + php-fpm + dockerize = easy PHP app server goodness

License: GNU General Public License v3.0

Shell 86.88% Dockerfile 13.12%
alpine docker dockerize nginx php php-fpm php-server

php-server's People

Contributors

pjeby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

php-server's Issues

Add PHP mail support

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.)

Better logging control

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.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.