Skip to content
Snippets Groups Projects
Commit bc3c7fe0 authored by Nils Olof Paulsson's avatar Nils Olof Paulsson
Browse files

Merge branch 'test' into 'production'

Test

See merge request !8
parents a1f98ef8 f91cc2ef
No related branches found
No related tags found
2 merge requests!9Devel,!8Test
Pipeline #120500 passed
...@@ -20,7 +20,16 @@ server { ...@@ -20,7 +20,16 @@ server {
server { server {
listen 80; listen 80;
server_name ntadigital.it.liu.se egg.it.liu.se; server_name ntadigital.it.liu.se;
location / {
return 301 http://egg.it.liu.se;
}
}
server {
listen 80;
server_name egg.it.liu.se;
client_max_body_size 0; client_max_body_size 0;
......
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 4096;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
# server {
# listen 80;
# listen [::]:80;
# server_name _;
# root /usr/share/nginx/html;
#
# # Load configuration files for the default server block.
# include /etc/nginx/default.d/*.conf;
#
# error_page 404 /404.html;
# location = /404.html {
# }
#
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# }
# }
# Settings for a TLS enabled server.
#
# server {
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
# server_name _;
# root /usr/share/nginx/html;
#
# ssl_certificate "/etc/pki/nginx/server.crt";
# ssl_certificate_key "/etc/pki/nginx/private/server.key";
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 10m;
# ssl_ciphers PROFILE=SYSTEM;
# ssl_prefer_server_ciphers on;
#
# # Load configuration files for the default server block.
# include /etc/nginx/default.d/*.conf;
#
# error_page 404 /404.html;
# location = /40x.html {
# }
#
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# }
# }
}
\ No newline at end of file
...@@ -6,11 +6,11 @@ class egg::nginx () { ...@@ -6,11 +6,11 @@ class egg::nginx () {
ensure => 'installed', ensure => 'installed',
} }
# inserf conf. files here # inserf conf. files here
# file { '/etc/nginx/nginx.conf': file { '/etc/nginx/nginx.conf':
# ensure => 'file', ensure => 'file',
# source => "puppet:///modules/${module_name}/nginx.conf", source => "puppet:///modules/${module_name}/nginx.conf",
# notify => Service['nginx'], notify => Service['nginx'],
# } }
file { '/etc/nginx/conf.d/egg.conf': file { '/etc/nginx/conf.d/egg.conf':
ensure => 'present', ensure => 'present',
source => "puppet:///modules/${module_name}/egg.conf", source => "puppet:///modules/${module_name}/egg.conf",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment