Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ data:
status.conf: |
server {
listen 80;
listen [::]:80;
server_name localhost;
server_name status.runnable.io;

location /nginx_status {
access_log off;
Expand All @@ -18,15 +17,15 @@ data:
user-pixel.conf: |
server {
listen 80;
server_name blue.runnableapp.com;
server_name blue.runnable.io;
location / {
return 404;
}
}

server {
listen 443 ssl;
server_name blue.runnableapp.com;
server_name blue.runnable.io;
gzip off;

ssl on;
Expand All @@ -48,7 +47,7 @@ data:
resolver_timeout 5s;

location = /pixel.gif {
add_header Set-Cookie "isModerating=1; Domain=.runnableapp.com; Path=/; HttpOnly;";
add_header Set-Cookie "isModerating=1; Domain=.runnable.io; Path=/; HttpOnly;";
empty_gif;
}

Expand Down
4 changes: 2 additions & 2 deletions ansible/k8/delta/navi-proxy/configMaps/navi-proxy-navi-config
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ data:
status.conf: |
server {
listen 80;
listen [::]:80;
server_name localhost;
server_name status.runnableapp.com;

location /nginx_status {
access_log off;
stub_status on;
}
}


navi.conf: |
map $http_upgrade $connection_upgrade {
default upgrade;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ data:
status.conf: |
server {
listen 80;
listen [::]:80;
server_name localhost;
server_name status.runnable-gamma.com;

location /nginx_status {
access_log off;
Expand All @@ -18,15 +17,15 @@ data:
user-pixel.conf: |
server {
listen 80;
server_name blue.runnablecloud.com;
server_name blue.runnable-gamma.com;
location / {
return 404;
}
}

server {
listen 443 ssl;
server_name blue.runnablecloud.com;
server_name blue.runnable-gamma.com;
gzip off;

ssl on;
Expand All @@ -48,7 +47,7 @@ data:
resolver_timeout 5s;

location = /pixel.gif {
add_header Set-Cookie "isModerating=1; Domain=.runnablecloud.com; Path=/; HttpOnly;";
add_header Set-Cookie "isModerating=1; Domain=.runnable-gamma.com; Path=/; HttpOnly;";
empty_gif;
}

Expand Down
4 changes: 2 additions & 2 deletions ansible/k8/gamma/navi-proxy/configMaps/navi-proxy-navi-config
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ data:
status.conf: |
server {
listen 80;
listen [::]:80;
server_name localhost;
server_name status.runnablecloud.com;

location /nginx_status {
access_log off;
stub_status on;
}
}


navi.conf: |
map $http_upgrade $connection_upgrade {
default upgrade;
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/content-domain-proxy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
src: proxy-nginx.conf
dest: "{{ config_maps_path }}/{{ name }}-base-config"

- name: create api template
- name: create navi template
tags: [ configure_proxy, configure_files ]
template:
src: navi.tmpl
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/content-domain-proxy/templates/navi.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ data:
status.conf: |
server {
listen 80;
listen [::]:80;
server_name localhost;
server_name status.{{ user_content_domain }};

location /nginx_status {
access_log off;
stub_status on;
}
}


navi.conf: |
map $http_upgrade $connection_upgrade {
default upgrade;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ data:
status.conf: |
server {
listen 80;
listen [::]:80;
server_name localhost;
server_name status.{{ domain }};

location /nginx_status {
access_log off;
Expand All @@ -18,15 +17,15 @@ data:
user-pixel.conf: |
server {
listen 80;
server_name blue.{{ user_content_domain }};
server_name blue.{{ domain }};
location / {
return 404;
}
}

server {
listen 443 ssl;
server_name blue.{{ user_content_domain }};
server_name blue.{{ domain }};
gzip off;

ssl on;
Expand All @@ -48,7 +47,7 @@ data:
resolver_timeout 5s;

location = /pixel.gif {
add_header Set-Cookie "isModerating=1; Domain=.{{ user_content_domain }}; Path=/; HttpOnly;";
add_header Set-Cookie "isModerating=1; Domain=.{{ domain }}; Path=/; HttpOnly;";
empty_gif;
}

Expand Down