Skip to content

Commit 3ab67ee

Browse files
authoredFeb 20, 2025··
feat: add adhoc-tls support (#4204)
1 parent 238c30b commit 3ab67ee

File tree

6 files changed

+21
-12
lines changed

6 files changed

+21
-12
lines changed
 

‎.gitpod.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
ports:
33
- port: 5002
44
onOpen: open-browser
5+
protocol: https
56
- port: 4000
67
onOpen: ignore
78
- port: 5000
@@ -37,6 +38,8 @@ tasks:
3738
before: |
3839
nvm install
3940
nvm use
41+
mkdir -p packages/webapp/certificates
42+
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -nodes -keyout packages/webapp/certificates/adhoc-server.key -out packages/webapp/certificates/adhoc-server.crt -days 365 -subj "/O=Daily Dev GitPod/CN=localhost"
4043
init: |
4144
npm i -g pnpm@9.14.4
4245
pnpm install

‎README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ The decision was made to allow faster iterations and to keep features parity in
3434
## Projects
3535

3636
### [packages](https://github.com/dailydotdev/apps/tree/main/packages)
37+
3738
contains a collection of smaller projects or libraries that are used across the daily.dev application suite. Here's a brief overview of each package mentioned:
3839

3940
- ### [eslint-config](https://github.com/dailydotdev/apps/tree/main/packages/eslint-config)
41+
4042
Shared ESLint settings for maintaining consistent code quality across the project.
4143

4244
- ### [eslint-rules](https://github.com/dailydotdev/apps/tree/main/packages/eslint-rules)
45+
4346
A custom ESLint plugin that defines a set of rules for the project, including a rule to enforce consistent color usage.
4447

4548
- ### [extension](https://github.com/dailydotdev/apps/tree/main/packages/extension)
@@ -55,26 +58,27 @@ contains a collection of smaller projects or libraries that are used across the
5558
The main project contains most of the components used in the applications. Every component that needs to be used on both platforms should be placed in this project. This includes the design system components, custom hooks, and many more.
5659

5760
- ### [storybook](https://github.com/dailydotdev/apps/tree/main/packages/storybook)
61+
5862
The Storybook configuration for the project, used to develop and showcase UI components in isolation.
5963

6064
- ### [webapp](https://github.com/dailydotdev/apps/tree/master/packages/webapp)
6165

6266
The web app project. This is a Next.js project and has more pages than the extension, such as a registration page, post page, profile page, etc. For more information [click here](https://github.com/dailydotdev/apps/tree/master/packages/webapp).
6367

6468
## Local Environment
69+
6570
To spin up a local environment, we suggest using GitPod. We have a GitPod button above, everything is already configured and should work out of the box. Click on it and let's roll!
6671

6772
**Note:** Checkout getting started with GitPod using their [official docs](https://www.gitpod.io/docs/introduction/getting-started). If you're new to gitPod, don't worry, it's a simple and powerful tool that will help you get started with this project in no time.
6873

69-
7074
## Want to Help?
7175

7276
So you want to contribute to daily.dev app suite and make an impact, we are glad to hear it. :heart_eyes:
7377

7478
Before you proceed we have a few guidelines for contribution that will make everything much easier.
7579

7680
We would appreciate if you dedicate the time and read them carefully:
77-
https://github.com/dailydotdev/.github/blob/master/CONTRIBUTING.md
81+
[CONTRIBUTING.md](https://github.com/dailydotdev/.github/blob/master/CONTRIBUTING.md)
7882

7983
## Bootstrap Project
8084

‎packages/webapp/.env

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
NEXT_PUBLIC_API_URL=http://api.local.com
1+
NEXT_PUBLIC_API_URL=https://api.local.fylla.dev
22
#NEXT_PUBLIC_API_URL=https://api.daily.dev
3-
NEXT_PUBLIC_SUBS_URL=ws://api.local.com/graphql
4-
NEXT_PUBLIC_DOMAIN=local.com
3+
NEXT_PUBLIC_SUBS_URL=wss://api.local.fylla.dev/graphql
4+
NEXT_PUBLIC_DOMAIN=local.fylla.dev
55

66
NEXT_PUBLIC_WEBAPP_URL=/
7-
NEXT_PUBLIC_AUTH_URL=http://sso.local.com
8-
NEXT_PUBLIC_HEIMDALL_URL=http://sso.local.com
7+
NEXT_PUBLIC_AUTH_URL=https://sso.local.fylla.dev
8+
NEXT_PUBLIC_HEIMDALL_URL=https://sso.local.fylla.dev
99
#NEXT_PUBLIC_AUTH_URL=https://sso.daily.dev
1010

1111
NEXT_PUBLIC_ONESIGNAL_APP_ID=04cddacf-5920-47a6-b567-9ae334d26681

‎packages/webapp/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ next-env.d.ts
44
# sw files that are generated on build
55
public/sw.js
66
workbox-*.js
7+
8+
certificates

‎packages/webapp/README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Next.js + React web application of daily.dev.
44
It utilizes the brand new incremental static generation feature of Next.js to deliver pages fast.
5-
Available at: https://app.daily.dev
5+
Available at: [app.daily.dev](https://app.daily.dev)
66

77
## Stack
88

@@ -25,13 +25,12 @@ Available at: https://app.daily.dev
2525
daily.dev web app requires a running environment of daily.dev.
2626
[Check out this guide](https://github.com/dailydotdev/daily#-running-dailydev-locally) of how to run daily.dev locally.
2727

28-
Finally run `npm run dev` to run the service and listen to port `5002`.
29-
28+
Finally run `npm run dev:notls` to run the service and listen to port `5002`.
3029

3130
## Want to Help?
3231

3332
So you want to contribute to daily.dev web app and make an impact, we are glad to hear it. :heart_eyes:
3433

3534
Before you proceed we have a few guidelines for contribution that will make everything much easier.
3635
We would appreciate if you dedicate the time and read them carefully:
37-
https://github.com/dailydotdev/.github/blob/master/CONTRIBUTING.md
36+
[CONTRIBUTING.md](https://github.com/dailydotdev/.github/blob/master/CONTRIBUTING.md)

‎packages/webapp/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "webapp",
33
"version": "0.0.0",
44
"scripts": {
5-
"dev": "next dev -p 5002",
5+
"dev": "next dev -p 5002 --experimental-https --experimental-https-key ./certificates/adhoc-server.key --experimental-https-cert ./certificates/adhoc-server.crt",
6+
"dev:notls": "next dev -p 5002",
67
"build": "next build",
78
"start": "next start",
89
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --max-warnings 0 --fix",

0 commit comments

Comments
 (0)
Please sign in to comment.