Commit 14be7d86 authored by Philip Schildkamp's avatar Philip Schildkamp

Add nginx DA to MCD

parent e8b24560
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" targetNamespace="http://dch.uni-koeln.de/tosca/artifacttemplates" id="winery-defs-for_dch_artifacttemplates-MusicalCompetitionsDatabase-DA-Elasticsearch_0.0.1-w1-wip1">
<ArtifactTemplate xmlns:artifacttypes="http://opentosca.org/artifacttypes" name="MusicalCompetitionsDatabase-DA-Nginx_0.0.1-w1-wip1" type="artifacttypes:ConfigurationArtifact" id="MusicalCompetitionsDatabase-DA-Nginx_0.0.1-w1-wip1">
<ArtifactReferences>
<ArtifactReference reference="artifacttemplates/http%253A%252F%252Fdch.uni-koeln.de%252Ftosca%252Fartifacttemplates/MusicalCompetitionsDatabase-DA-Nginx_0.0.1-w1-wip1/files/MusicalCompetitionsDatabase.nginx"/>
</ArtifactReferences>
</ArtifactTemplate>
</Definitions>
user www-data;
pid /run/nginx.pid;
worker_processes auto;
error_log /proc/1/fd/1 warn;
pcre_jit on;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
proxy_buffering off;
proxy_request_buffering off;
proxy_max_temp_file_size 0;
client_max_body_size 0;
server {
listen 80 default_server;
root /opt/musical-competitions/0.0.1/dist;
location / {
return 307 /app;
}
location /app {
try_files $uri $uri/ /index.html$is_args$args;
}
location /assets {
try_files $uri =404;
}
}
}
......@@ -82,7 +82,11 @@
</Properties>
</NodeTemplate>
<NodeTemplate xmlns:dch_nodetypes="http://dch.uni-koeln.de/tosca/nodetypes" name="Nodejs_10.16.0-w1-wip1" minInstances="1" maxInstances="1" type="dch_nodetypes:Nodejs_10.16.0-w1-wip1" id="Nodejs_10.16.0-w1-wip1" winery:x="790" winery:y="265"/>
<NodeTemplate xmlns:dch_nodetypes="http://dch.uni-koeln.de/tosca/nodetypes" name="Nginx_1.14.0-w1-wip1" minInstances="1" maxInstances="1" type="dch_nodetypes:Nginx_1.14.0-w1-wip1" id="Nginx_1.14.0-w1-wip1" winery:x="710" winery:y="335"/>
<NodeTemplate xmlns:dch_nodetypes="http://dch.uni-koeln.de/tosca/nodetypes" name="Nginx_1.14.0-w1-wip1" minInstances="1" maxInstances="1" type="dch_nodetypes:Nginx_1.14.0-w1-wip1" id="Nginx_1.14.0-w1-wip1" winery:x="710" winery:y="335">
<DeploymentArtifacts>
<DeploymentArtifact xmlns:artifacttypes="http://opentosca.org/artifacttypes" xmlns:dch_artifacttemplates="http://dch.uni-koeln.de/tosca/artifacttemplates" name="Nginx" artifactType="artifacttypes:ConfigurationArtifact" artifactRef="dch_artifacttemplates:MusicalCompetitionsDatabase-DA-Nginx_0.0.1-w1-wip1"/>
</DeploymentArtifacts>
</NodeTemplate>
<NodeTemplate xmlns:dch_nodetypes="http://dch.uni-koeln.de/tosca/nodetypes" name="MusicalCompetitionsApp_0.0.1-w1-wip1" minInstances="1" maxInstances="1" type="dch_nodetypes:MusicalCompetitionsApp_0.0.1-w1-wip1" id="MusicalCompetitionsApp_0.0.1-w1-wip1" winery:x="750" winery:y="150"/>
<NodeTemplate xmlns:dch_nodetypes="http://dch.uni-koeln.de/tosca/nodetypes" name="ElasticsearchIndex_1.7.6-w1-wip1" minInstances="1" maxInstances="1" type="dch_nodetypes:ElasticsearchIndex_1.7.6-w1-wip1" id="ElasticsearchIndex_1.7.6-w1-wip1" winery:x="400" winery:y="150">
<Properties>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment