-
-
Save jacques/f22e94e2fe6e1f8764b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # dropbox | |
| description "starts the dropbox client" | |
| start on runlevel [2345] | |
| stop on shutdown | |
| respawn | |
| umask 0027 | |
| script | |
| export LANG=en_US.UTF-8 | |
| exec su -s /bin/sh -c /srv/websites/.dropbox-dist/dropboxd websites | |
| end script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80 default ipv6only=on; | |
| server_name ~^(?P<app>[a-z0-9]+)\.app\.c1\.com\.bo$; | |
| root /var/www; | |
| location / { | |
| access_log /var/log/nginx/access.$app.log; | |
| error_log /var/log/nginx/error.apps.log error; | |
| uwsgi_pass unix:///home/apps/Apps/$app.app.c1.com.bo/var/run/$app.socket; | |
| include uwsgi_params; | |
| } | |
| } | |
| server { | |
| index index.html index.htm; | |
| server_name ~^(www\.)?(?P<domain>.+)$; | |
| root /srv/websites/Dropbox/Hosts; | |
| location = /favicon.ico { | |
| access_log off; | |
| log_not_found off; | |
| } | |
| location ~ /[._]+ { | |
| deny all; | |
| return 404; | |
| } | |
| location / { | |
| index index.html index.php; | |
| access_log /var/log/nginx/access.website-$domain.log; | |
| error_log /var/log/nginx/error.website-$domain.log error; | |
| root /srv/websites/Dropbox/Hosts/$domain; | |
| try_files $uri $uri/ =404; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment