refactor(Makefile): remove App Engine configs and scripts, migrate launchpad to Cloud Run
This commit removes legacy App Engine deployment artifacts and updates the Makefile to reflect the successful migration of the `internal-launchpad` service to Cloud Run. The following changes were made: - Deleted obsolete permission scripts: - `fix-appengine-permissions-complete.sh` - `fix-project-level-permissions.sh` - `create-missing-repository.sh` - Removed the `firebase/internal-launchpad/app.yaml` file. - Updated `firebase.json` to remove the `launchpad` hosting configuration. These changes streamline the repository, reduce developer confusion, and prevent the accidental use of outdated deployment logic.
This commit is contained in:
18
firebase/internal-launchpad/.gcloudignore
Normal file
18
firebase/internal-launchpad/.gcloudignore
Normal file
@@ -0,0 +1,18 @@
|
||||
# This file specifies files that are *not* uploaded to Google Cloud
|
||||
# using gcloud. It follows the same syntax as .gitignore, with the addition of
|
||||
# "#!include" directives (which insert the entries of the given .gitignore-style
|
||||
# file at that point).
|
||||
#
|
||||
# For more information, run:
|
||||
# $ gcloud topic gcloudignore
|
||||
#
|
||||
.gcloudignore
|
||||
# If you would like to upload your .git directory, .gitignore file or files
|
||||
# from your .gitignore file, remove the corresponding line
|
||||
# below:
|
||||
.git
|
||||
.gitignore
|
||||
|
||||
# Node.js dependencies:
|
||||
node_modules/
|
||||
*.log
|
||||
28
firebase/internal-launchpad/Dockerfile
Normal file
28
firebase/internal-launchpad/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
# Utiliser nginx pour servir les fichiers statiques
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copier les fichiers statiques
|
||||
COPY index.html /usr/share/nginx/html/
|
||||
COPY assets /usr/share/nginx/html/assets/
|
||||
COPY favicon.svg /usr/share/nginx/html/
|
||||
COPY logo.svg /usr/share/nginx/html/
|
||||
|
||||
# Configuration nginx pour le routing SPA
|
||||
RUN echo 'server { \
|
||||
listen 8080; \
|
||||
server_name _; \
|
||||
root /usr/share/nginx/html; \
|
||||
index index.html; \
|
||||
location / { \
|
||||
try_files $uri $uri/ /index.html; \
|
||||
} \
|
||||
# Headers de sécurité \
|
||||
add_header X-Frame-Options "SAMEORIGIN" always; \
|
||||
add_header X-Content-Type-Options "nosniff" always; \
|
||||
add_header X-XSS-Protection "1; mode=block" always; \
|
||||
}' > /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Nginx écoute sur le port 8080 (requis par Cloud Run)
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
30
firebase/internal-launchpad/app.yaml
Normal file
30
firebase/internal-launchpad/app.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
runtime: python312
|
||||
service: default
|
||||
instance_class: F1
|
||||
|
||||
handlers:
|
||||
- url: /
|
||||
static_files: index.html
|
||||
upload: index.html
|
||||
secure: always
|
||||
|
||||
- url: /(.*\.(ico|png|jpg|jpeg|gif|svg|webp|woff|woff2|ttf|eot|json))
|
||||
static_files: \1
|
||||
upload: (.*\.(ico|png|jpg|jpeg|gif|svg|webp|woff|woff2|ttf|eot|json))
|
||||
secure: always
|
||||
expiration: "1d"
|
||||
|
||||
- url: /(.*\.(js|css|map))
|
||||
static_files: \1
|
||||
upload: (.*\.(js|css|map))
|
||||
secure: always
|
||||
expiration: "1d"
|
||||
|
||||
- url: /(.*)
|
||||
static_files: \1
|
||||
upload: (.*)
|
||||
secure: always
|
||||
|
||||
automatic_scaling:
|
||||
max_instances: 5
|
||||
min_instances: 0
|
||||
6
firebase/internal-launchpad/iap-users.txt
Normal file
6
firebase/internal-launchpad/iap-users.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
# Liste des utilisateurs autorisés pour le Internal Launchpad
|
||||
# Format: un email par ligne, les lignes commençant par # sont des commentaires
|
||||
|
||||
user:boris@oloodi.com
|
||||
# user:temporaire@oloodi.com # Décommenté pour donner accès temporaire
|
||||
user:admin@krowwithus.com
|
||||
Reference in New Issue
Block a user