Skip to content

Commit

Permalink
tmp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NoodleOfDeath committed Feb 29, 2024
1 parent c2efd66 commit f78e343
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 32 deletions.
190 changes: 163 additions & 27 deletions k8s/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ metadata:
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers 'x-forwarded-for: $http_x_forwarded_for';
spec:
tls:
- hosts:
Expand Down Expand Up @@ -37,9 +35,6 @@ metadata:
if ($request_uri = '/.well-known/assetlinks.json') {
set $FLAGS "W";
}
if ($host = 'readless.ai') {
set $FLAGS "${FLAGS}X";
}
if ($FLAGS !~ "W") {
rewrite ^ https://www.readless.ai$request_uri permanent;
}
Expand Down Expand Up @@ -67,8 +62,6 @@ metadata:
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers 'x-forwarded-for: $http_x_forwarded_for';
spec:
tls:
- hosts:
Expand All @@ -93,8 +86,6 @@ metadata:
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers 'x-forwarded-for: $http_x_forwarded_for';
nginx.ingress.kubernetes.io/auth-type: basic
# name of the secret that contains the user/password definitions
nginx.ingress.kubernetes.io/auth-secret: dev-auth
Expand Down Expand Up @@ -124,8 +115,6 @@ metadata:
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers 'x-forwarded-for: $http_x_forwarded_for';
spec:
tls:
- hosts:
Expand Down Expand Up @@ -180,9 +169,6 @@ metadata:
if ($request_uri = '/.well-known/assetlinks.json') {
set $FLAGS "W";
}
if ($host = 'mergingoftheminds.com') {
set $FLAGS "${FLAGS}X";
}
if ($FLAGS !~ "W") {
rewrite ^ https://www.mergingoftheminds.com$request_uri permanent;
}
Expand All @@ -206,31 +192,31 @@ spec:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: 2nerds1cup-web
name: rollingcodes-web
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
spec:
tls:
- hosts:
- www.2nerds1cup.com
secretName: tls-www.2nerds1cup.com
- www.rollingcodes.ai
secretName: tls-www.rollingcodes.ai
rules:
- host: www.2nerds1cup.com
- host: www.rollingcodes.ai
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: readless-web-prod
name: rollingcodes-web-prod
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: 2nerds1cup-web-redirect
name: rollingcodes-web-redirect
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
Expand All @@ -240,25 +226,175 @@ metadata:
if ($request_uri = '/.well-known/assetlinks.json') {
set $FLAGS "W";
}
if ($host = '2nerds1cup.com') {
set $FLAGS "${FLAGS}X";
if ($FLAGS !~ "W") {
rewrite ^ https://www.rollingcodes.ai$request_uri permanent;
}
spec:
tls:
- hosts:
- rollingcodes.ai
secretName: tls-rollingcodes.ai
rules:
- host: rollingcodes.ai
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: rollingcodes-web-prod
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: rollingcodes-web-dev
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
spec:
tls:
- hosts:
- dev.rollingcodes.ai
secretName: tls-dev.rollingcodes.ai
rules:
- host: dev.rollingcodes.ai
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: rollingcodes-web-dev
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: drunkmode-web
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
spec:
tls:
- hosts:
- www.drunkmode.app
secretName: tls-www.drunkmode.app
rules:
- host: www.drunkmode.app
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: drunkmode-web-prod
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: drunkmode-web-redirect
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
set $FLAGS "";
if ($request_uri = '/.well-known/assetlinks.json') {
set $FLAGS "W";
}
if ($FLAGS !~ "W") {
rewrite ^ https://www.2nerds1cup.com$request_uri permanent;
rewrite ^ https://www.drunkmode.app$request_uri permanent;
}
spec:
tls:
- hosts:
- 2nerds1cup.com
secretName: tls-2nerds1cup.com
- drunkmode.app
secretName: tls-drunkmode.app
rules:
- host: 2nerds1cup.com
- host: drunkmode.app
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: readless-web-prod
name: drunkmode-web-prod
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: drunkmode-api
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
spec:
tls:
- hosts:
- api.drunkmode.app
secretName: tls-api.drunkmode.app
rules:
- host: api.drunkmode.app
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: drunkmode-api-prod
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: drunkmode-web-dev
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
spec:
tls:
- hosts:
- dev.drunkmode.app
secretName: tls-dev.drunkmode.app
rules:
- host: dev.drunkmode.app
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: drunkmode-web-dev
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: drunkmode-api-dev
namespace: ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
spec:
tls:
- hosts:
- api.dev.drunkmode.app
secretName: tls-api.dev.drunkmode.app
rules:
- host: api.dev.drunkmode.app
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: drunkmode-api-dev
port:
number: 80
7 changes: 2 additions & 5 deletions src/mobile/src/components/post/summary/SummaryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,9 @@ export function SummaryList({
}, [sortable, prevSortBy, sortBy]);

useAppState({
onBackground: React.useCallback(() => {
if (!isFocused) {
return;
}
onBackground: () => {
setLastActive(Date.now());
}, [isFocused]),
},
onForeground: React.useCallback(() => {
if (!isFocused) {
return;
Expand Down

0 comments on commit f78e343

Please sign in to comment.