Skip to content

zhexiao/mail-signature

Repository files navigation

Mail Signature

Easy to generate your email signature.

DIRECTORY STRUCTURE

  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the basic application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

REQUIREMENTS

The minimum requirement by this application template that your Web server supports PHP 5.4.0.

SERVER CONFIGURATION

Nginx

server {
  listen *:80;
  #listen [::]:80 ipv6only=on;

  root /var/www/html/mail-signature/web;
  index index.php;

  # Make site accessible from http://localhost/
  server_name sign.zhexiao.space;

  access_log /var/log/nginx/sign.access.log;
  error_log /var/log/nginx/sign.error.log;

  location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    # try_files $uri $uri/ =404;
    try_files $uri $uri/ /index.php?$args;
    # Uncomment to enable naxsi on this location
    # include /etc/nginx/naxsi.rules
  } 

  error_page 404 /404.html;
  error_page 500 502 503 504 /50x.html;
  location = /50x.html {
    root /var/www/html;
  }

  location ~ \.php$ {
    try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
  }

  location ~ /\.(ht|svn|git){
    deny all;
  }

}

Apache

<VirtualHost *:80>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/mail-signature/web"

    <Directory "/Applications/XAMPP/xamppfiles/htdocs/mail-signature/web">
        # use mod_rewrite for pretty URL support
        RewriteEngine on
        # If a directory or a file exists, use the request directly
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        # Otherwise forward the request to index.php
        RewriteRule . index.php
    </Directory>

    ServerName local.sign.com
    ErrorLog "logs/sign.example.com-error_log"
    CustomLog "logs/sign.example.com-access_log" common
</VirtualHost>

Technical

  • Yii The Fast, Secure and Professional PHP Framework.

  • Handlebars Handlebars provides the power necessary to let you build semantic templates effectively with no frustration.

  • Cloudinary Cloudinary is the image back-end for web and mobile developers. An end-to-end solution for all your image-related needs.

  • Bootstrap Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.

SASS Command

$ sass --watch sass/site.scss:css/site.css --no-cache --sourcemap=none --style compressed

Troubleshooting

mbstring is a non-default extension. This means it is not enabled by default. You must explicitly enable the module with the configure option.

# For Linux Mint using PHP 7:
$ sudo apt-get install php7.0-mbstring
$ sudo service php7.0-fpm restart

About

Generate your email signature

Topics

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published