Skip to content
Snippets Groups Projects
Commit e1a6e064 authored by MichiK's avatar MichiK
Browse files

Fix nginx config

parent 68ee14c8
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,9 @@ nginx_https_sites:
locations:
- location: "/"
config: "root {{ website_deployment_path }};"
- location "/img/"
- location: "/img/"
config: "add_header Access-Control-Allow-Origin *;"
- location "~ /(.*)_galf_tseuq.html$"
- location: "~ /(.*)_galf_tseuq.html$"
config: "add_header Access-Control-Allow-Origin *;"
- location: "~ /wiki(.*)$"
config: "return 301 https://wiki.c3heaven.de$1?$args;"
......@@ -32,18 +32,25 @@ nginx_https_sites:
add_header Access-Control-Allow-Origin *;
- location: "/angelguide.pdf"
config: "rewrite .* /guide/angelguide_$lang.pdf;"
- location: "/favicon.ico"
config: |-
access_log off;
log_not_found off;
return 404;
- name: "www.c3heaven.de"
locations:
- location: "/"
config: "root /var/www/html;"
- location: "~ /wiki(.*)$"
config: "return 301 https://wiki.c3heaven.de$1?$args;"
- location: "~ /kanboard(.*)$"
config: "return 301 https://kanboard.c3heaven.de$1?$args;"
config: |-
access_log off;
log_not_found off;
return 301 https://c3heaven.de$request_uri;
- name: "gabriel.c3heaven.de"
locations:
- location: "/"
config: "root /var/www/html;"
config: |-
access_log off;
log_not_found off;
return 301 https://c3heaven.de$request_uri;
- name: "kanboard.c3heaven.de"
options:
- "client_max_body_size 100M;"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment