Skip to content

Commit

Permalink
feat: enable dev without ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen committed Nov 28, 2023
1 parent d60768f commit c193ba4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion front/admin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config: UserConfig = {
port: 3002,
strictPort: true,
proxy: {
"/api": "https://admin.local.openstream.fm",
"/api": "https://admin.dev.openstream.fm:18865",
}
},
// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion front/app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const config: UserConfig = {
port: 3001,
strictPort: true,
proxy: {
"/api": "https://studio.local.openstream.fm",
"/api": "http://studio.dev.openstream.fm:18965",
},

fs: {
Expand Down
6 changes: 3 additions & 3 deletions front/server/src/api/admin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export type PublicConfig = {

export const public_config = (hosts: HostConfig & { id: string }): PublicConfig => {
const config: PublicConfig = {
studio_public_url: `https://${hosts.studio.host}`,
storage_public_url: `https://${hosts.storage.host}`,
stream_public_url: `https://${hosts.stream.host}`,
studio_public_url: `//${hosts.studio.host}`,
storage_public_url: `//${hosts.storage.host}`,
stream_public_url: `//${hosts.stream.host}`,
source_public_host: hosts.source.host,
source_public_port: hosts.source.port,
}
Expand Down
6 changes: 3 additions & 3 deletions front/server/src/api/studio-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export type PublicConfig = {

export const public_config = (hosts: HostConfig & { id: string }): PublicConfig => {
const config: PublicConfig = {
storage_public_url: `https://${hosts.storage.host}`,
stream_public_url: `https://${hosts.stream.host}`,
studio_public_url: `https://${hosts.studio.host}`,
storage_public_url: `//${hosts.storage.host}`,
stream_public_url: `//${hosts.stream.host}`,
studio_public_url: `//${hosts.studio.host}`,
source_public_host: hosts.source.host,
source_public_port: hosts.source.port,
}
Expand Down

0 comments on commit c193ba4

Please sign in to comment.