Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
slapos
Commits
34c39a6a
Commit
34c39a6a
authored
Aug 21, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete html5as recipe
parent
466e239f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
199 deletions
+0
-199
slapos/recipe/html5as/__init__.py
slapos/recipe/html5as/__init__.py
+0
-75
slapos/recipe/html5as/template/mime_types.in
slapos/recipe/html5as/template/mime_types.in
+0
-78
slapos/recipe/html5as/template/nginx_conf.in
slapos/recipe/html5as/template/nginx_conf.in
+0
-32
slapos/recipe/html5as/template/nginx_run.in
slapos/recipe/html5as/template/nginx_run.in
+0
-14
No files found.
slapos/recipe/html5as/__init__.py
deleted
100644 → 0
View file @
466e239f
##############################################################################
#
# Copyright (c) 2011 Vifib SARL and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from
slapos.recipe.librecipe
import
GenericBaseRecipe
import
binascii
import
os
import
sys
class
Recipe
(
GenericBaseRecipe
):
"""
nginx instance configuration.
"""
def
__init__
(
self
,
buildout
,
name
,
options
):
return
GenericBaseRecipe
.
__init__
(
self
,
buildout
,
name
,
options
)
def
install
(
self
):
config
=
dict
(
nb_workers
=
self
.
options
[
"nb_workers"
],
path_pid
=
self
.
options
[
"path_pid"
],
path_log
=
self
.
options
[
"path_log"
],
tmp
=
self
.
options
[
"tmp"
],
path_access_log
=
self
.
options
[
"path_access_log"
],
path_error_log
=
self
.
options
[
"path_error_log"
],
root
=
self
.
options
[
"root"
],
ip
=
self
.
options
[
"ip"
],
port
=
self
.
options
[
"port"
],
path_shell
=
self
.
options
[
"path_shell"
],
config_file
=
self
.
options
[
"config_file"
],
path
=
self
.
options
[
"path"
],
nginx_path
=
self
.
options
[
"nginx_path"
],
mime_path
=
self
.
options
[
"mime_path"
],
default_index
=
self
.
options
[
"default_index"
]
)
# Configs
nginx_conf_file
=
self
.
createFile
(
self
.
options
[
'config_file'
],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'nginx_conf.in'
),
config
)
)
nginx_mime_types
=
self
.
createFile
(
self
.
options
[
'mime_path'
],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'mime_types.in'
),
config
)
)
# Runners
runner_path
=
self
.
createExecutable
(
self
.
options
[
'path'
],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'nginx_run.in'
),
config
))
return
[
runner_path
,
nginx_conf_file
]
slapos/recipe/html5as/template/mime_types.in
deleted
100644 → 0
View file @
466e239f
types {
text/html html htm shtml;
text/css css;
text/xml xml rss;
image/gif gif;
image/jpeg jpeg jpg;
application/x-javascript js;
application/atom+xml atom;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
image/svg+xml svg svgz;
application/java-archive jar war ear;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.ms-excel xls;
application/vnd.ms-powerpoint ppt;
application/vnd.wap.wmlc wmlc;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream eot;
application/octet-stream iso img;
application/octet-stream msi msp msm;
application/ogg ogx;
audio/midi mid midi kar;
audio/mpeg mpga mpega mp2 mp3 m4a;
audio/ogg oga ogg spx;
audio/x-realaudio ra;
audio/webm weba;
video/3gpp 3gpp 3gp;
video/mp4 mp4;
video/mpeg mpeg mpg mpe;
video/ogg ogv;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}
slapos/recipe/html5as/template/nginx_conf.in
deleted
100644 → 0
View file @
466e239f
worker_processes %(nb_workers)s;
user nouser nogroup;
pid %(path_pid)s;
error_log %(path_error_log)s;
events {
worker_connections 1024;
accept_mutex off;
}
http {
include mime.types;
default_type application/octet-stream;
access_log %(path_access_log)s combined;
index index.html;
server {
listen [::]:%(port)s;
server_name _;
keepalive_timeout 5;
client_body_temp_path %(tmp)s/client_body_temp;
proxy_temp_path %(tmp)s/proxy_temp;
fastcgi_temp_path %(tmp)s/fastcgi_temp;
uwsgi_temp_path %(tmp)s/uwsgi_temp;
scgi_temp_path %(tmp)s/scgi_temp;
# path for static files
root %(root)s;
}
}
slapos/recipe/html5as/template/nginx_run.in
deleted
100644 → 0
View file @
466e239f
#!%(path_shell)s
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
git clone http://git.erp5.org/repos/slapos.core.git --branch slapjs
cd slapos.core
git config core.sparsecheckout true
echo jQuery/vifib/ > .git/info/sparse-checkout
git read-tree -m -u slapjs
mv jQuery/vifib/* %(root)s
cd ..
rm -r slapos.core
exec %(nginx_path)s -c %(config_file)s
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment